forked from VimPlug/jedi
fix problems with unbounderrors in assignment calls
This commit is contained in:
+9
-6
@@ -876,12 +876,15 @@ class Statement(Simple):
|
|||||||
debug.warning("Brackets don't match: %s."
|
debug.warning("Brackets don't match: %s."
|
||||||
"This is not normal behaviour." % level)
|
"This is not normal behaviour." % level)
|
||||||
|
|
||||||
while result is not None:
|
if self.token_list:
|
||||||
try:
|
while result is not None:
|
||||||
result.end_pos = start_pos[0], start_pos[1] + len(tok)
|
try:
|
||||||
except TypeError:
|
result.end_pos = start_pos[0], start_pos[1] + len(tok)
|
||||||
result.end_pos = tok.end_pos
|
except TypeError:
|
||||||
result = result.parent
|
result.end_pos = tok.end_pos
|
||||||
|
result = result.parent
|
||||||
|
else:
|
||||||
|
result.end_pos = self.end_pos
|
||||||
|
|
||||||
self._assignment_calls_calculated = True
|
self._assignment_calls_calculated = True
|
||||||
self._assignment_calls = top
|
self._assignment_calls = top
|
||||||
|
|||||||
Reference in New Issue
Block a user