False positive undefined-variable when a function attribute of same name is set #3877
Labels
Bug 🪲
C: undefined-variable
Issues related to 'undefined-variable' check
False Positive 🦟
A message is emitted but nothing is wrong with the code
Milestone
Steps to reproduce
Pylint output:
Current behavior
An "undefined variable" is incorrectly reported.
Expected behavior
Zero issue detected when defining a function attribute
with the same name of a local variable in the current scope.
pylint --version output
Additional notes
There are a few other existing issues related to "false positive undefined-variable" errors:
The text was updated successfully, but these errors were encountered: