HasExplicitFields

HasExplicitFields#

class penzai.treescope.handlers.hardcoded_structure_handlers.HasExplicitFields[source]#

Bases: object

Marks a type as having an explicit set of fields.

We assume that the constructor for such a type takes each of the fields as keyword arguments, and that the fields are also attributes.

Variables:
  • fields (Sequence[str]) – Collection of fields to render.

  • render_subclasses (bool) – Whether to also render subclasses of the class.

Methods

__init__(fields[, render_subclasses])

Attributes

render_subclasses

fields