This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from enum import Enum, EnumMeta | |
| class ChoiceEnumMeta(EnumMeta): | |
| def __iter__(self): | |
| return ((tag, tag.value) for tag in super().__iter__()) | |
| class ChoiceEnum(Enum, metaclass=ChoiceEnumMeta): | |
| """ |
OlderNewer