Skip to main content

DocEnumItem

ClassDataClassSource

DocEnumItem(name: str, type: str, value: str = "", descr: str = "")

The docstring of an enum item.

Fields

NameTypeRequired
Description
namestrThe name of the enum item.
typestrThe type of the enum item. It is usually the typehint (annotation).
valuestrThe formatted value of the enum item.
descrstrThe docstring of the enum item, it is defined in codes.