The checker for W0212(access to a protected member of a client class)
, implemented in vist_getattr in classes.py, allows calls to your base
class, but not your own class.
Example:
class Foo:
_attr = 1
def foo(self):
Foo._attr += 1 #False positive - raises W0212
class Bar(Foo):
def bar(self):
Foo._attr += 1 #No error