False positive unused-private-member
if class member is mutated via cls
#4657
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Milestone
Steps to reproduce
Given a file
w0238.py
:Current behavior
Result of
pylint w0238.py
:Expected behavior
I would expect no
unused-private-member
warning ascls
is inferred as the current class.However, this example feels error prone under edge cases.
pylint --version output
Result of
pylint --version
output:The text was updated successfully, but these errors were encountered: