List should be treated as invalid unpacking targets #1256
Labels
help wanted
Extra attention is needed
level:starter
Good for newcomers
pr-available
rule request
Adding a new rule
Milestone
Rule request
Thesis
Currently, this code passes our linter:
But, it is wrong. We need to force:
So, we need to disallow
ast.List
as an unpacking target.Reasoning
There's an already a working way of doing unpacking assignment: tuples.
We don't need one more way to do it.
I would say this is a consistency rule.
The text was updated successfully, but these errors were encountered: