diff --git a/doc/user_guide/checkers/features.rst b/doc/user_guide/checkers/features.rst index e83312b8a3..fd7f07d716 100644 --- a/doc/user_guide/checkers/features.rst +++ b/doc/user_guide/checkers/features.rst @@ -328,7 +328,7 @@ Classes checker Messages interface or in an overridden method. :protected-access (W0212): *Access to a protected member %s of a client class* Used when a protected member (i.e. class member with a name beginning with an - underscore) is access outside the class or a descendant of the class where + underscore) is accessed outside the class or a descendant of the class where it's defined. :attribute-defined-outside-init (W0201): *Attribute %r defined outside __init__* Used when an instance attribute is defined outside the __init__ method. diff --git a/pylint/checkers/classes/class_checker.py b/pylint/checkers/classes/class_checker.py index d7bd299105..ced5048eb1 100644 --- a/pylint/checkers/classes/class_checker.py +++ b/pylint/checkers/classes/class_checker.py @@ -523,7 +523,7 @@ def _has_same_layout_slots( "Access to a protected member %s of a client class", # E0214 "protected-access", "Used when a protected member (i.e. class member with a name " - "beginning with an underscore) is access outside the class or a " + "beginning with an underscore) is accessed outside the class or a " "descendant of the class where it's defined.", ), "W0213": (