FN attribute-defined-outside-init
with setattr()
#9798
Labels
False Negative 🦋
No message is emitted but something is wrong with the code
Help wanted 🙏
Outside help would be appreciated, good for new contributors
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
Configuration
No response
Command used
Pylint output
Expected behavior
Two messages. You shouldn't be able to get around the lint warning by using
setattr()
(unless the attribute was already defined in__init__()
.Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: