mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 01:38:36 +08:00
ignore an exception with incomplete 'as' statements
This commit is contained in:
+1
-1
@@ -768,7 +768,7 @@ class Statement(Simple):
|
|||||||
is_chain = False
|
is_chain = False
|
||||||
continue
|
continue
|
||||||
elif tok == 'as':
|
elif tok == 'as':
|
||||||
next(tok_iter)
|
next(tok_iter, None)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
brackets = {'(': Array.TUPLE, '[': Array.LIST, '{': Array.SET}
|
brackets = {'(': Array.TUPLE, '[': Array.LIST, '{': Array.SET}
|
||||||
|
|||||||
Reference in New Issue
Block a user