mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-27 23:51:26 +08:00
Correct positioning for if statements.
This commit is contained in:
@@ -169,7 +169,7 @@ class NameFinder(object):
|
||||
except KeyError:
|
||||
continue
|
||||
else:
|
||||
if self.name_str.start_pos < scope.end_pos:
|
||||
if self.name_str.start_pos < scope.children[1].end_pos:
|
||||
# It doesn't make any sense to check if
|
||||
# statements in the if statement itself, just
|
||||
# deliver types.
|
||||
|
||||
Reference in New Issue
Block a user