|
Let us walk on the 3-isogeny graph
|
Data Structures | |
| class | _SyntaxError |
| class | Frame |
| class | PathHighlighter |
| class | Stack |
| class | Trace |
| class | Traceback |
Functions | |
| Callable[[Type[BaseException], BaseException, Optional[TracebackType]], Any] | install (*Optional[Console] console=None, Optional[int] width=100, int extra_lines=3, Optional[str] theme=None, bool word_wrap=False, bool show_locals=False, int locals_max_length=LOCALS_MAX_LENGTH, int locals_max_string=LOCALS_MAX_STRING, bool locals_hide_dunder=True, Optional[bool] locals_hide_sunder=None, bool indent_guides=True, Iterable[Union[str, ModuleType]] suppress=(), int max_frames=100) |
| None | bar (Any a) |
| None | foo (Any a) |
| None | error () |
Variables | |
| str | WINDOWS = "Windows" |
| int | LOCALS_MAX_LENGTH = 10 |
| int | LOCALS_MAX_STRING = 80 |
| console = Console() | |
| None bar | ( | Any | a | ) |
Definition at line 729 of file traceback.py.
| None error | ( | ) |
Definition at line 746 of file traceback.py.
References pip._vendor.rich.traceback.error(), pip._vendor.rich.traceback.foo(), and i.
Referenced by pip._vendor.rich.traceback.error().


| None foo | ( | Any | a | ) |
Definition at line 733 of file traceback.py.
Referenced by pip._vendor.rich.traceback.error().

| Callable[[Type[BaseException], BaseException, Optional[TracebackType]], Any] install | ( | *Optional[Console] | console = None, |
| Optional[int] | width = 100, |
||
| int | extra_lines = 3, |
||
| Optional[str] | theme = None, |
||
| bool | word_wrap = False, |
||
| bool | show_locals = False, |
||
| int | locals_max_length = LOCALS_MAX_LENGTH, |
||
| int | locals_max_string = LOCALS_MAX_STRING, |
||
| bool | locals_hide_dunder = True, |
||
| Optional[bool] | locals_hide_sunder = None, |
||
| bool | indent_guides = True, |
||
| Iterable[Union[str, ModuleType]] | suppress = (), |
||
| int | max_frames = 100 |
||
| ) |
Install a rich traceback handler.
Once installed, any tracebacks will be printed with syntax highlighting and rich formatting.
Args:
console (Optional[Console], optional): Console to write exception to. Default uses internal Console instance.
width (Optional[int], optional): Width (in characters) of traceback. Defaults to 100.
extra_lines (int, optional): Extra lines of code. Defaults to 3.
theme (Optional[str], optional): Pygments theme to use in traceback. Defaults to ``None`` which will pick
a theme appropriate for the platform.
word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
show_locals (bool, optional): Enable display of local variables. Defaults to False.
locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
Defaults to 10.
locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
indent_guides (bool, optional): Enable indent guides in code and locals. Defaults to True.
suppress (Sequence[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
Returns:
Callable: The previous exception handler that was replaced.
Definition at line 48 of file traceback.py.
References i.
| console = Console() |
Definition at line 726 of file traceback.py.
| int LOCALS_MAX_LENGTH = 10 |
Definition at line 44 of file traceback.py.
| int LOCALS_MAX_STRING = 80 |
Definition at line 45 of file traceback.py.
| str WINDOWS = "Windows" |
Definition at line 42 of file traceback.py.