mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-13 11:41:43 +08:00
Correct positioning for if statements.
This commit is contained in:
@@ -169,7 +169,7 @@ class NameFinder(object):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
continue
|
continue
|
||||||
else:
|
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
|
# It doesn't make any sense to check if
|
||||||
# statements in the if statement itself, just
|
# statements in the if statement itself, just
|
||||||
# deliver types.
|
# deliver types.
|
||||||
|
|||||||
Reference in New Issue
Block a user