mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-20 06:07:05 +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:
|
||||
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