mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-19 03:51:25 +08:00
Reworked ExprStmt.get_definition
This commit is contained in:
1 parent
1c27759c4f
commit
c1807e5f33
1 file changed
+5
-1
@@ -1039,7 +1039,11 @@ class Statement(Simple, DocstringMixin):
|
|||||||
names = []
|
names = []
|
||||||
for i in range(0, len(self.children) - 2, 2):
|
for i in range(0, len(self.children) - 2, 2):
|
||||||
if self.children[i + 1].value == '=':
|
if self.children[i + 1].value == '=':
|
||||||
names.append(self.children[i])
|
current = self.children[i]
|
||||||
|
if is_node(current, 'testlist_star_expr'):
|
||||||
|
names += current.children[::2]
|
||||||
|
else:
|
||||||
|
names.append(current)
|
||||||
return names
|
return names
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user