redeclared-assigned-name (PLW0128)
Added in 0.5.0 · Related issues · View source
Derived from the Pylint linter.
What it does
Checks for declared assignments to the same variable multiple times in the same assignment.
Why is this bad?
Assigning a variable multiple times in the same assignment is redundant, as the final assignment to the variable is what the value will be.
Example
Use instead: