Method: pylint.checkers.classes.class_checker.ClassChecker.leave_functiondef
Calls: 3521, Exceptions: 0, Paths: 2Back
Path 1: 1805 calls (0.51)
FunctionDef (1768) AsyncFunctionDef (37)
1def leave_functiondef(self, node: nodes.FunctionDef) -> None:
2 """On method node, check if this method couldn't be a function.
3
4 ignore class, static and abstract methods, initializer,
5 methods overridden from a parent class.
6 """
7 if node.is_method():
8 if node.args.args is not None:
9 self._first_attrs.pop()
Path 2: 1716 calls (0.49)
FunctionDef (1699) AsyncFunctionDef (17)
1def leave_functiondef(self, node: nodes.FunctionDef) -> None:
2 """On method node, check if this method couldn't be a function.
3
4 ignore class, static and abstract methods, initializer,
5 methods overridden from a parent class.
6 """
7 if node.is_method():
8 if node.args.args is not None:
9 self._first_attrs.pop()