IsEnumLike#
- class penzai.treescope.handlers.hardcoded_structure_handlers.IsEnumLike[source]#
Bases:
objectMarks a type as behaving like an enum.
Instances of enum-like types are assumed to have
nameandvalueattributes, and those instances should be accessible through attribute lookup on the class.- Variables:
render_subclasses (bool) – Whether to also render subclasses of the class.
Methods
__init__([render_subclasses])Attributes
render_subclasses