1
0
forked from VimPlug/jedi

Goto didn't work well on imports in __init__.py files.

Fixes #956.
This commit is contained in:
Dave Halter
2017-09-11 21:48:37 +02:00
parent c05f1d3ccc
commit 619acbd2ca
10 changed files with 56 additions and 13 deletions

View File

@@ -65,9 +65,10 @@ def infer_import(context, tree_name, is_goto=False):
if from_import_name is not None:
types = unite(
t.py__getattribute__(
from_import_name.value if isinstance(from_import_name, tree.Name) else from_import_name,
from_import_name,
name_context=context,
is_goto=is_goto
is_goto=is_goto,
analysis_errors=False
) for t in types
)