penzai.treescope.repr_lib#
Stable high-level interface for building object reprs.
These functions simplify the process of implmenting __penzai_repr__ for
custom types, allowing them to integrate with treescope. This interface will be
stable across penzai releases, and may be expanded in the future to support
additional customization.
Note that the exact types of path and subtree_renderer are subject to
change in future releases. These should always be passed directly from
__penzai_repr__.
Functions
|
Renders an object in "wrapped dictionary format". |
|
Renders an object in "constructor format", similar to a dataclass. |