Fix some stuff for Jedi.

This commit is contained in:
Dave Halter
2017-07-14 17:30:33 +02:00
parent d32a84e181
commit 1d0e982d89

View File

@@ -877,7 +877,7 @@ def _defined_names(current):
list comprehensions.
"""
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]:
names += _defined_names(child)
elif current.type in ('atom', 'star_expr'):