跳到主要内容

DocEnumItem

类数据类源码

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

枚举类型成员的 docstring。

字段​

字段类型必选
说明
namestr所属的枚举类型名称。
typestr该枚举类型成员的值类型。该类型通常是该值的类型提示(标注)。
valuestr枚举成员值的格式化结果。
descrstr枚举成员的 docstring 文字,只能从源码中提取。