Method: pylint.extensions.no_self_use._has_bare_super_call
Calls: 8, Exceptions: 0, Paths: 3Back
Path 1: 5 calls (0.62)
FunctionDef (5)
False (5)
1def _has_bare_super_call(fundef_node: nodes.FunctionDef) -> bool:
2 for call in fundef_node.nodes_of_class(nodes.Call):
3 func = call.func
4 if isinstance(func, nodes.Name) and func.name == "super" and not call.args:
5 return True
6 return False
Path 2: 2 calls (0.25)
FunctionDef (1) AsyncFunctionDef (1)
False (2)
1def _has_bare_super_call(fundef_node: nodes.FunctionDef) -> bool:
2 for call in fundef_node.nodes_of_class(nodes.Call):
3 func = call.func
4 if isinstance(func, nodes.Name) and func.name == "super" and not call.args:
5 return True
6 return False
Path 3: 1 calls (0.12)
FunctionDef (1)
True (1)
1def _has_bare_super_call(fundef_node: nodes.FunctionDef) -> bool:
2 for call in fundef_node.nodes_of_class(nodes.Call):
3 func = call.func
4 if isinstance(func, nodes.Name) and func.name == "super" and not call.args:
5 return True
6 return False