ID EN
Enum

StrEnum

Python 3.11

StrEnum is the same as Enum, but its members are also strings and can be used in most of the same places that a string can be used. The result of any string operation performed on or with a StrEnum member is not part of the enumeration.

Syntax

PYTHON
class enum.StrEnum

See Also

str str auto StrEnum __str__() __format__()