forked from VimPlug/jedi
A bit of shuffling code around get_definition around.
This commit is contained in:
@@ -173,7 +173,7 @@ class NameFinder(object):
|
||||
|
||||
def _name_to_types(evaluator, context, tree_name):
|
||||
types = []
|
||||
node = tree_name.get_definition()
|
||||
node = tree_name.get_definition(import_name_always=True)
|
||||
if node is None:
|
||||
node = tree_name.parent
|
||||
if node.type == 'global_stmt':
|
||||
|
||||
Reference in New Issue
Block a user