liblaf.grapes.rich.traceback
¤
Classes:
Functions:
-
install–
RichExceptionSummary
¤
Parameters:
-
exc_type(type[BaseException]) – -
exc_value(BaseException) – -
traceback(traceback | None) –
Attributes:
-
highlighter(Highlighter) –Highlights the text typically produced from
__repr__methods.
Methods:
highlighter
class-attribute
instance-attribute
¤
highlighter: Highlighter = field(
repr=False, init=False, factory=ReprHighlighter
)
traceback
instance-attribute
¤
traceback: TracebackType | None
Used by:
-
Reference
Liblaf
grapes
rich
traceback
tracebackRichExceptionSummary
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/grapes/rich/traceback/_exception.py
28 29 | |
__rich_console__
¤
__rich_console__(
console: Console, options: ConsoleOptions
) -> RenderResult
Source code in src/liblaf/grapes/rich/traceback/_exception.py
31 32 33 34 | |
render
¤
render(
options: RichTracebackOptions | None = None,
) -> Generator[RenderableType]
Source code in src/liblaf/grapes/rich/traceback/_exception.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |
RichFrameSummary
¤
Parameters:
Returned by:
-
Reference
Liblaf
grapes
rich
traceback
tracebackRichStackSummaryframes
Methods:
Attributes:
-
end_column(int | None) – -
end_line(int | None) – -
filename(str) – -
frame(FrameType) – -
hidden(bool) – -
lasti(int) – -
lineno(int) – -
locals(dict[str, Any]) – -
name(str) – -
position(tuple[int | None, int | None, int | None, int | None]) – -
qualname(str) – -
start_column(int | None) – -
start_line(int | None) –
frame
instance-attribute
¤
frame: FrameType
Used by:
-
Reference
Liblaf
grapes
rich
traceback
tracebackRichFrameSummary
__rich_console__
¤
__rich_console__(
console: Console, options: ConsoleOptions
) -> RenderResult
Source code in src/liblaf/grapes/rich/traceback/_frame.py
26 27 28 29 | |
render
¤
render(
options: RichTracebackOptions | None = None,
) -> Generator[RenderableType]
Source code in src/liblaf/grapes/rich/traceback/_frame.py
71 72 73 74 75 76 77 78 79 80 | |
RichStackSummary
¤
Parameters:
-
traceback(traceback | None) –
Returned by:
-
Reference
Liblaf
grapes
rich
traceback
tracebackRichExceptionSummarystack
Methods:
Attributes:
-
frames(list[RichFrameSummary]) – -
traceback(TracebackType | None) –
traceback
instance-attribute
¤
traceback: TracebackType | None
Used by:
-
Reference
Liblaf
grapes
rich
traceback
tracebackRichStackSummary
__rich_console__
¤
__rich_console__(
console: Console, options: ConsoleOptions
) -> RenderResult
Source code in src/liblaf/grapes/rich/traceback/_stack.py
19 20 21 22 | |
render
¤
render(
options: RichTracebackOptions | None = None,
) -> Generator[RenderableType]
Source code in src/liblaf/grapes/rich/traceback/_stack.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
install
¤
install(*, console: Console | None = None) -> None
Source code in src/liblaf/grapes/rich/traceback/_install.py
11 12 13 14 15 16 17 18 19 20 21 22 23 | |