1
0
forked from VimPlug/jedi

Differentiate in finder between get_value_filters and get_global_filters

This commit is contained in:
Dave Halter
2019-08-15 09:29:08 +02:00
parent 9986d8c9aa
commit 21a18c698e
3 changed files with 26 additions and 25 deletions

View File

@@ -572,7 +572,7 @@ def tree_name_to_values(infer_state, value, tree_name):
if node.type == 'global_stmt':
value = infer_state.create_value(value, tree_name)
finder = NameFinder(infer_state, value, value, tree_name.value)
filters = finder.get_filters(search_global=True)
filters = finder.get_global_filters()
# For global_stmt lookups, we only need the first possible scope,
# which means the function itself.
filters = [next(filters)]