1
0
forked from VimPlug/jedi

Trying to move towards unifying goto and py__getattribute__

This commit is contained in:
Dave Halter
2019-08-24 00:18:48 +02:00
parent fcec30dff6
commit b13a9f7d5b
4 changed files with 18 additions and 23 deletions

View File

@@ -575,7 +575,7 @@ def tree_name_to_values(inference_state, context, tree_name):
# For global_stmt lookups, we only need the first possible scope,
# which means the function itself.
filters = [next(c.get_filters())]
return finder.find(filters, attribute_lookup=False)
return finder.find(finder.filter_name(filters), attribute_lookup=False)
elif node.type not in ('import_from', 'import_name'):
c = context.create_context(tree_name)
return infer_atom(c, tree_name)