mirror of https://github.com/go-python/gopy.git
Checks
This commit is contained in:
parent
3bc817dcb1
commit
113c72fdd4
|
@ -122,6 +122,9 @@ func (p *Package) getDoc(parent string, o types.Object) string {
|
|||
}
|
||||
// Check for typed consts
|
||||
scopeName := p.pkg.Scope().Lookup(n)
|
||||
if scopeName == nil {
|
||||
return ""
|
||||
}
|
||||
constType := scopeName.Type()
|
||||
if constType == nil {
|
||||
return ""
|
||||
|
|
Loading…
Reference in New Issue