Path 1: 2300 calls (1.0)

None (2288) StringIO (12)

1def __init__(self, output: TextIO | None = None) -> None:
2        if getattr(self, "__implements__", None):
3            warnings.warn(
4                "Using the __implements__ inheritance pattern for BaseReporter is no "
5                "longer supported. Child classes should only inherit BaseReporter",
6                DeprecationWarning,
7                stacklevel=2,
8            )
9        self.linter: PyLinter
10        self.section = 0
11        self.out: TextIO = output or sys.stdout
12        self.messages: list[Message] = []
13        # Build the path prefix to strip to get relative paths
14        self.path_strip_prefix = os.getcwd() + os.sep
            

Path 2: 1 calls (0.0)

None (1)

1def __init__(self, output: TextIO | None = None) -> None:
2        if getattr(self, "__implements__", None):
3            warnings.warn(
4                "Using the __implements__ inheritance pattern for BaseReporter is no "
5                "longer supported. Child classes should only inherit BaseReporter",
6                DeprecationWarning,
7                stacklevel=2,
8            )
9        self.linter: PyLinter
10        self.section = 0
11        self.out: TextIO = output or sys.stdout
12        self.messages: list[Message] = []
13        # Build the path prefix to strip to get relative paths
14        self.path_strip_prefix = os.getcwd() + os.sep