Method: pylint.checkers.exceptions.ExceptionRaiseLeafVisitor.visit_classdef
Calls: 281, Exceptions: 0, Paths: 2Back
Path 1: 273 calls (0.97)
ClassDef (273)
1def visit_classdef(self, node: nodes.ClassDef) -> None:
2 if not utils.inherit_from_std_ex(node) and utils.has_known_bases(node):
3 if node.newstyle:
4 self._checker.add_message(
5 "raising-non-exception",
6 node=self._node,
7 confidence=INFERENCE,
8 )
Path 2: 8 calls (0.03)
ClassDef (8)
1def visit_classdef(self, node: nodes.ClassDef) -> None:
2 if not utils.inherit_from_std_ex(node) and utils.has_known_bases(node):
3 if node.newstyle:
4 self._checker.add_message(
5 "raising-non-exception",
6 node=self._node,
7 confidence=INFERENCE,
8 )