API Reference / Modules / enum enum Standard library Module View source class Enum class Enum View complete class API → Native singleton members, initialized by _make_member before lookup. Constructors 1 __new__ @staticmethod __new__(value) Properties 2 name @property name(self: Self) value @property value(self: Self) Special methods 13 __iter__ @staticmethod __iter__() __len__ @staticmethod __len__() __reversed__ @staticmethod __reversed__() __getitem__ @staticmethod __getitem__(name: str) __contains__ @staticmethod __contains__(value) __eq__ __eq__(self: Self, other, /) __ne__ __ne__(self: Self, other, /) __hash__ __hash__(self: Self) __bool__ __bool__(self: Self) __str__ __str__(self: Self) __repr__ __repr__(self: Self) __copy__ __copy__(self: Self) -> Self __deepcopy__ __deepcopy__(self: Self) -> Self class auto class auto View complete class API → Generate the next integer value inside an Enum declaration.
class Enum class Enum View complete class API → Native singleton members, initialized by _make_member before lookup. Constructors 1 __new__ @staticmethod __new__(value) Properties 2 name @property name(self: Self) value @property value(self: Self) Special methods 13 __iter__ @staticmethod __iter__() __len__ @staticmethod __len__() __reversed__ @staticmethod __reversed__() __getitem__ @staticmethod __getitem__(name: str) __contains__ @staticmethod __contains__(value) __eq__ __eq__(self: Self, other, /) __ne__ __ne__(self: Self, other, /) __hash__ __hash__(self: Self) __bool__ __bool__(self: Self) __str__ __str__(self: Self) __repr__ __repr__(self: Self) __copy__ __copy__(self: Self) -> Self __deepcopy__ __deepcopy__(self: Self) -> Self
class auto class auto View complete class API → Generate the next integer value inside an Enum declaration.