Method: pylint.checkers.exceptions.BaseVisitor.visit
Calls: 586, Exceptions: 0, Paths: 2Back
Path 1: 578 calls (0.99)
ExceptionInstance (210) Call (208) Name (84) ClassDef (68) Const (4) Instance (3) Tuple (1)
1def visit(self, node: SuccessfulInferenceResult) -> None:
2 name = node.__class__.__name__.lower()
3 dispatch_meth = getattr(self, "visit_" + name, None)
4 if dispatch_meth:
5 dispatch_meth(node)
6 else:
7 self.visit_default(node)
Path 2: 8 calls (0.01)
Attribute (3) Const (3) BinOp (1) Tuple (1)
1def visit(self, node: SuccessfulInferenceResult) -> None:
2 name = node.__class__.__name__.lower()
3 dispatch_meth = getattr(self, "visit_" + name, None)
4 if dispatch_meth:
5 dispatch_meth(node)
6 else:
7 self.visit_default(node)