TypeEnumerationDescriptor¶
- class dsviper.TypeEnumerationDescriptor(name, *, documentation=None)¶
Bases:
objectA class used to describe the cases of an enum.
- add_case(name: str, documentation: str | None = None)¶
Add a case to the enum.
- cases() list[TypeEnumerationCase]¶
Return the list of cases.
- description() str¶
Return the description.
- documentation() str¶
Return the documentation.
- name() str¶
Return the name.