DeferredPlaceholder#
- class penzai.treescope.foldable_representation.foldable_impl.DeferredPlaceholder[source]#
Bases:
DeferringToChildA deferred part. Renders as a placeholder which will later be replaced.
Inherited Attributes
collapsed_widthThe length of this rendering if collapsed in one line, in characters.
newlines_in_expanded_parentThe number of newlines in this rendering if in an expanded parent.
tags_in_this_partReturns a set of "tag" objects contained in this part.
Methods
__init__(child, replacement_id[, ...])render_to_html(stream, *[, at_beginning_of_line])Attributes
collapsed_widthThe length of this rendering if collapsed in one line, in characters.
newlines_in_expanded_parentThe number of newlines in this rendering if in an expanded parent.
saved_at_beginning_of_linesaved_render_contexttags_in_this_partReturns a set of "tag" objects contained in this part.
childreplacement_idInherited Methods
(expand to view inherited methods)
foldables_in_this_part()html_setup_parts(context, /)render_to_text(stream, *, expanded_parent, ...)