Method: pylint.checkers.classes.class_checker.ClassChecker._uses_mandatory_method_param
Calls: 3693, Exceptions: 0, Paths: 1Back
Path 1: 3693 calls (1.0)
Attribute (3223) AssignAttr (470)
False (2984) True (709)
1def _uses_mandatory_method_param(
2 self, node: nodes.Attribute | nodes.Assign | nodes.AssignAttr
3 ) -> bool:
4 """Check that attribute lookup name use first attribute variable name.
5
6 Name is `self` for method, `cls` for classmethod and `mcs` for metaclass.
7 """
8 return self._is_mandatory_method_param(node.expr)