BaseSpanGroup

Contents

BaseSpanGroup#

class penzai.treescope.foldable_representation.basic_parts.BaseSpanGroup[source]#

Bases: DeferringToChild, ABC

A group that wraps its child in a span, and may apply CSS styles.

Subclasses can define a particular CSS style to apply.

Variables:

child (RenderableTreePart) – Contents of the group.

Inherited Attributes

collapsed_width

The length of this rendering if collapsed in one line, in characters.

newlines_in_expanded_parent

The number of newlines in this rendering if in an expanded parent.

tags_in_this_part

Returns a set of "tag" objects contained in this part.

Methods

__init__(child)

html_setup_parts(context, /)

render_to_html(stream, *[, at_beginning_of_line])

Attributes

collapsed_width

The length of this rendering if collapsed in one line, in characters.

newlines_in_expanded_parent

The number of newlines in this rendering if in an expanded parent.

tags_in_this_part

Returns a set of "tag" objects contained in this part.

child

Inherited Methods

(expand to view inherited methods)

foldables_in_this_part()

render_to_text(stream, *, expanded_parent, ...)