1
0
forked from VimPlug/jedi

Imports can be executed twice without this.

This commit is contained in:
Dave Halter
2017-09-19 18:17:07 +02:00
parent 260aef943a
commit 03584ff3f3

View File

@@ -62,6 +62,9 @@ def infer_import(context, tree_name, is_goto=False):
#if import_node.is_nested() and not self.nested_resolve:
# scopes = [NestedImportModule(module, import_node)]
if not types:
return set()
if from_import_name is not None:
types = unite(
t.py__getattribute__(