mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-13 05:48:56 +08:00
Correct positioning for if statements.
This commit is contained in:
1 parent
db1ed70318
commit
6e44f334d8
1 file changed
+1
-1
@@ -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