mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-08 05:34:51 +08:00
Fix some stuff for Jedi.
This commit is contained in:
@@ -877,7 +877,7 @@ def _defined_names(current):
|
|||||||
list comprehensions.
|
list comprehensions.
|
||||||
"""
|
"""
|
||||||
names = []
|
names = []
|
||||||
if current.type in ('testlist_star_expr', 'testlist_comp', 'exprlist'):
|
if current.type in ('testlist_star_expr', 'testlist_comp', 'exprlist', 'testlist'):
|
||||||
for child in current.children[::2]:
|
for child in current.children[::2]:
|
||||||
names += _defined_names(child)
|
names += _defined_names(child)
|
||||||
elif current.type in ('atom', 'star_expr'):
|
elif current.type in ('atom', 'star_expr'):
|
||||||
|
|||||||
Reference in New Issue
Block a user