1
0
forked from VimPlug/jedi

Fix names selection and params, fixes #1283

This commit is contained in:
Dave Halter
2019-02-26 00:20:14 +01:00
parent eac69aef2b
commit 94f2677752
4 changed files with 23 additions and 3 deletions

View File

@@ -172,7 +172,7 @@ def get_module_names(module, all_scopes):
# parent_scope. There's None as a parent, because nodes in the module
# node have the parent module and not suite as all the others.
# Therefore it's important to catch that case.
names = [n for n in names if get_parent_scope(n).parent in (module, None)]
names = [n for n in names if get_parent_scope(n) == module]
return names