diff options
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r-- | astroid/protocols.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py index dc66ca2c..0d2fb99f 100644 --- a/astroid/protocols.py +++ b/astroid/protocols.py @@ -686,11 +686,10 @@ def starred_assigned_stmts(self, node=None, context=None, assign_path=None): continue # We're done unpacking. - elts = list(elts) packed = nodes.List( ctx=Store, parent=self, lineno=lhs.lineno, col_offset=lhs.col_offset ) - packed.postinit(elts=elts) + packed.postinit(elts=list(elts)) yield packed break |