Restrict protected attributes and methods access and assignment #272
Labels
Hacktoberfest
Hactoberfest fun!
help wanted
Extra attention is needed
level:advanced
Needs a lot of care
rule request
Adding a new rule
Milestone
Rule request
Thesis
Currently we allow to use this code:
No warning would be shown to the user.
What we need to do?
_
) in a free mannerself
andcls
like:self._some = 1
However,
Test._some
is not valid.Reasoning
We should respect protected APIs. And whenever we are using one (which we should not do), we should explicitly mark these lines with
noqa
.The text was updated successfully, but these errors were encountered: