Method: pylint.checkers.utils.is_super
Calls: 202, Exceptions: 0, Paths: 2Back
Path 1: 197 calls (0.98)
Instance (69) Super (46) Const (23) Module (21) FunctionDef (15) ClassDef (14) Dict (2) ExceptionInstance (2) List (1) Tuple (1)
False (197)
1def is_super(node: nodes.NodeNG) -> bool:
2 """Return True if the node is referencing the "super" builtin function."""
3 if getattr(node, "name", None) == "super" and node.root().name == "builtins":
4 return True
5 return False
Path 2: 5 calls (0.02)
Instance (4) ClassDef (1)
True (5)
1def is_super(node: nodes.NodeNG) -> bool:
2 """Return True if the node is referencing the "super" builtin function."""
3 if getattr(node, "name", None) == "super" and node.root().name == "builtins":
4 return True
5 return False