treescope.repr_lib#
Stable high-level interface for building object reprs.
These functions simplify the process of implmenting __treescope_repr__
for
custom types, allowing them to integrate with treescope. This interface will be
stable across treescope releases, and may be expanded in the future to support
additional customization.
Functions
|
Renders an object in "wrapped dictionary format". |
|
Renders a value of an enum-like type (e.g. like |
|
Renders an object in "constructor format", similar to a dataclass. |