You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detects accessing a private attribute, e.g. obj._private, but allows for self._private, cls._private, and mcs._private (for in metaclasses). It doesn't currently check that cls._private is only within a class method, etc., which is something that could be improved. It also always allows access to dunders, e.g. obj.__eq__.
The text was updated successfully, but these errors were encountered:
GitHub, PyPI.
SLF001
: Private member accessDetects accessing a private attribute, e.g.
obj._private
, but allows forself._private
,cls._private
, andmcs._private
(for in metaclasses). It doesn't currently check thatcls._private
is only within a class method, etc., which is something that could be improved. It also always allows access to dunders, e.g.obj.__eq__
.The text was updated successfully, but these errors were encountered: