Skip to content

rs_rich.traceback

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rich.traceback: Traceback, its data classes and install.

install is _native.traceback_install (rich.pretty has an install too, so the compiled module names them apart).

Frame

filename instance-attribute

filename: str

lineno instance-attribute

lineno: int

name instance-attribute

name: str

line instance-attribute

line: str

locals instance-attribute

locals: Optional[Dict[str, Node]]

last_instruction instance-attribute

last_instruction: Optional[Tuple[Tuple[int, int], Tuple[int, int]]]

Stack

exc_type instance-attribute

exc_type: str

exc_value instance-attribute

exc_value: str

syntax_error instance-attribute

syntax_error: Any

is_cause instance-attribute

is_cause: bool

frames instance-attribute

frames: List[Frame]

notes instance-attribute

notes: List[str]

is_group instance-attribute

is_group: bool

exceptions instance-attribute

exceptions: List[Trace]

Trace

stacks instance-attribute

stacks: List[Stack]

Traceback

trace instance-attribute

trace: Trace

width property

width: Optional[int]

code_width property

code_width: Optional[int]

extra_lines property

extra_lines: int

theme property

theme: str

word_wrap property

word_wrap: bool

show_locals property

show_locals: bool

indent_guides property

indent_guides: bool

locals_hide_dunder property

locals_hide_dunder: bool

locals_hide_sunder property

locals_hide_sunder: bool

suppress property

suppress: List[str]

max_frames property

max_frames: int

from_exception classmethod

from_exception(exc_type: Any, exc_value: BaseException, traceback: Any, *, width: Optional[int] = 100, code_width: Optional[int] = 88, extra_lines: int = 3, theme: Optional[str] = None, word_wrap: bool = False, show_locals: bool = False, locals_max_length: Optional[int] = 10, locals_max_string: Optional[int] = 80, locals_max_depth: Optional[int] = None, locals_hide_dunder: bool = True, locals_hide_sunder: bool = False, locals_overflow: Optional[OverflowMethod] = None, indent_guides: bool = True, suppress: Iterable[Any] = (), max_frames: int = 100) -> Traceback

extract classmethod

extract(exc_type: Any, exc_value: BaseException, traceback: Any, *, show_locals: bool = False, locals_max_length: Optional[int] = 10, locals_max_string: Optional[int] = 80, locals_max_depth: Optional[int] = None, locals_hide_dunder: bool = True, locals_hide_sunder: bool = False, _visited_exceptions: Any = None) -> Trace