Siblings#
- class penzai.treescope.foldable_representation.basic_parts.Siblings[source]#
Bases:
RenderableTreePartA sequence of children parts, rendered inline.
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__(children)build(*args)Builds a Siblings part from inline arguments.
foldables_in_this_part()html_setup_parts(context)render_to_html(stream, *[, at_beginning_of_line])render_to_text(stream, *, expanded_parent, ...)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.
children- classmethod build(*args: RenderableTreePart | str) Siblings[source]#
Builds a Siblings part from inline arguments.
- Parameters:
*args – Sequence of renderables or strings (which will be wrapped in Text)
- Returns:
A new Siblings part containing these concatenated together.