self-assigning-variable (PLW0127)
Added in v0.0.281 · Related issues · View source
Derived from the Pylint linter.
What it does
Checks for self-assignment of variables.
Why is this bad?
Self-assignment of variables is redundant and likely a mistake.
Example
Use instead: