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
|
// Check for typed consts
|
||||||
scopeName := p.pkg.Scope().Lookup(n)
|
scopeName := p.pkg.Scope().Lookup(n)
|
||||||
|
if scopeName == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
constType := scopeName.Type()
|
constType := scopeName.Type()
|
||||||
if constType == nil {
|
if constType == nil {
|
||||||
return ""
|
return ""
|
||||||
|
|
Loading…
Reference in New Issue