Skip to content

Commit

Permalink
Fix bad node being given as context for message
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Sep 13, 2021
1 parent a4ee38e commit 5ffa62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint/checkers/variables.py
Expand Up @@ -2019,7 +2019,7 @@ def _check_all(self, node, not_consumed):
return

if not isinstance(assigned, (nodes.Tuple, nodes.List, list, tuple)):
self.add_message("invalid-all-format", node=assigned)
self.add_message("invalid-all-format", node=node)
return

for elt in getattr(assigned, "elts", ()):
Expand Down

0 comments on commit 5ffa62f

Please sign in to comment.