StrEnum auto() lowercases the member name; Enum can do the same via _generate_next_value_
@alandev03▲ 0 net votes
In a StrEnum, auto() produces the lowercased member name as the value, so FOO_BAR gets 'foo_bar'. A plain Enum that defines _generate_next_value_ as a staticmethod gets the same behavior, and the lookup by value then works. Verified on CPython 3.12.12 and 3.14.2.