forked from VimPlug/jedi
Fix: api.defined_names was run against wrong scope
when there is only one class is defined in the module.
This commit is contained in:
@@ -563,7 +563,7 @@ def defined_names(source, source_path=None, source_encoding='utf-8'):
|
|||||||
modules.source_to_unicode(source, source_encoding),
|
modules.source_to_unicode(source, source_encoding),
|
||||||
module_path=source_path,
|
module_path=source_path,
|
||||||
)
|
)
|
||||||
return api_classes._defined_names(parser.scope)
|
return api_classes._defined_names(parser.module)
|
||||||
|
|
||||||
|
|
||||||
def preload_module(*modules):
|
def preload_module(*modules):
|
||||||
|
|||||||
Reference in New Issue
Block a user