Path 1: 10 calls (1.0)

100 (10)

3 (10)

None (10)

False (10)

False (9) True (1)

() (10)

100 (10)

1def print_exception(
2        self,
3        *,
4        width: Optional[int] = 100,
5        extra_lines: int = 3,
6        theme: Optional[str] = None,
7        word_wrap: bool = False,
8        show_locals: bool = False,
9        suppress: Iterable[Union[str, ModuleType]] = (),
10        max_frames: int = 100,
11    ) -> None:
12        """Prints a rich render of the last exception and traceback.
13
14        Args:
15            width (Optional[int], optional): Number of characters used to render code. Defaults to 100.
16            extra_lines (int, optional): Additional lines of code to render. Defaults to 3.
17            theme (str, optional): Override pygments theme used in traceback
18            word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
19            show_locals (bool, optional): Enable display of local variables. Defaults to False.
20            suppress (Iterable[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
21            max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.
22        """
23        from .traceback import Traceback
24
25        traceback = Traceback(
26            width=width,
27            extra_lines=extra_lines,
28            theme=theme,
29            word_wrap=word_wrap,
30            show_locals=show_locals,
31            suppress=suppress,
32            max_frames=max_frames,
33        )
34        self.print(traceback)