summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-12-15 11:07:15 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-12-15 11:07:15 +0200
commitd68f2935378ecce766c2ec9086c18e44d4b78572 (patch)
tree84e9977293b71b78b819b619d8bbb7321c27ed08 /astroid/protocols.py
parent18ca60d21066d6cc5de1aa600bfeacb4ab352cc3 (diff)
downloadastroid-git-d68f2935378ecce766c2ec9086c18e44d4b78572.tar.gz
``nodes.Const.itered`` returns a list of ``Const`` nodes, not strings
Because ``Const.itered`` was not returning proper nodes, pylint was failing when trying to infer objects created from those nodes. Close PyCQA/pylint#3306
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r--astroid/protocols.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 09301511..33d90ea3 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -677,7 +677,9 @@ def starred_assigned_stmts(self, node=None, context=None, assign_path=None):
break
elts.pop()
continue
- # We're done
+
+ # We're done unpacking.
+ elts = list(elts)
packed = nodes.List(
ctx=Store, parent=self, lineno=lhs.lineno, col_offset=lhs.col_offset
)