mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-20 10:17:05 +08:00
Avoid import recursions in other ways
This commit is contained in:
1 parent
250ac77f4a
commit
6d361e03ac
4 files changed
+9
-19
No files matched your search
@@ -95,7 +95,8 @@ def goto_import(context, tree_name):
|
||||
analysis_errors=False
|
||||
) for c in values
|
||||
])
|
||||
if names:
|
||||
# Avoid recursion on the same names.
|
||||
if names and not any(n.tree_name is tree_name for n in names):
|
||||
return names
|
||||
|
||||
path = import_path + (from_import_name,)
|
||||
|
||||
Reference in new issue
Block a user