ethanfurman / aenum

Advanced Enumerations for Python
179 stars 13 forks source link

Possible to create an auto() Enum with the inheriting class name? #34

Open mzhukovs opened 1 year ago

mzhukovs commented 1 year ago

class MyEnum(AutoClassStrEnum): TEST_1 = auto() TEST_2 = auto()

assert MyEnum.TEST_1.value == "MyEnum.TEST_1 "