mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-11 23:50:12 +08:00
Fix some stuff for Jedi.
This commit is contained in:
1 parent
d32a84e181
commit
1d0e982d89
1 file changed
+1
-1
@@ -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