mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
working related_names function
This commit is contained in:
@@ -327,6 +327,9 @@ def related_names(definitions, search_name, modules):
|
||||
names = []
|
||||
# TODO check modules in the same directoy
|
||||
for m in modules:
|
||||
if not m.path.endswith('.py'):
|
||||
# don't search for names in builtin modules
|
||||
continue
|
||||
try:
|
||||
stmts = m.used_names[search_name]
|
||||
except KeyError:
|
||||
|
||||
Reference in New Issue
Block a user