IsEnumLike#
- class penzai.treescope.handlers.hardcoded_structure_handlers.IsEnumLike[source]#
Bases:
object
Marks a type as behaving like an enum.
Instances of enum-like types are assumed to have
name
andvalue
attributes, 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