Table of Contents

Class SchemaEnum

The base class for enumerations generated by Bonsai.Sgen.

Type names follow the same rules as SchemaModel, including sgen_typename for a type defined elsewhere. The schema of an integer enumeration specifies the names of its values, with names in the upper case of the Python convention converted to PascalCase. For a string enumeration the names are derived directly from its values. To combine it with another enumeration base such as IntEnum or StrEnum, list SchemaEnum first.

Inheritance
SchemaEnum