redeclared-assigned-name: Allow dummy variables instead of hard-coded underscore #3341
Labels
Enhancement ✨
Improvement to a component
Good first issue
Friendly and approachable by new contributors
The check for
redeclared-assigned-name
has an exception hard-coded for_
. If_
can not be used for unpacking return values, this is inconvenient. The check should instead allow all values that match thedummy-variables-rgx
configuration.Steps to reproduce
Run
pylint --disable=all --enable=redeclared-assigned-name --dummy-variables-rgx='_unused' sample.py
Current behavior
Expected behavior
no errors.
_unused
is a valid dummy variable name.pylint --version output
but the hard coded exception for "_" is still in master, so I don't see why any newer version would behave differently.
The text was updated successfully, but these errors were encountered: