A bit of shuffling code around get_definition around.
This commit is contained in:
1 parent
f69d8f1f29
commit
65c02a2332
2 files changed
+3
-5
No files matched your search
@@ -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