Derived from the Pylint linter.
This rule is unstable and in preview. The
--preview flag is required for use.
What it does#
Checks for variables defined in
that redefine function parameters.
Why is this bad?#
Redefined variable can cause unexpected behavior because of overridden function parameter. If nested functions are declared, inner function's body can override outer function's parameter.