mirror of
https://github.com/davidhalter/jedi.git
synced 2026-09-21 01:03:14 +08:00
getattr is now also allowed on modules, fixes #116
This commit is contained in:
@@ -408,7 +408,7 @@ class Execution(Executable):
|
||||
return []
|
||||
|
||||
for obj in objects:
|
||||
if not isinstance(obj, (Instance, Class)):
|
||||
if not isinstance(obj, (Instance, Class, pr.Module)):
|
||||
debug.warning('getattr called without instance')
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user