ruff
ef4df346 - [ty] implement `auto()` for `StrEnum` (#20524)

Commit
147 days ago
[ty] implement `auto()` for `StrEnum` (#20524) ## Summary see discussion here: https://github.com/astral-sh/ty/issues/876#issuecomment-3310130167 https://docs.python.org/3/library/enum.html#enum.StrEnum > Note Using [auto](https://docs.python.org/3/library/enum.html#enum.auto) with [StrEnum](https://docs.python.org/3/library/enum.html#enum.StrEnum) results in the lower-cased member name as the value. ## Test Plan - new mdtest - also, added a test to assert the (already correct) behavior for `IntEnum` --------- Co-authored-by: David Peter <mail@david-peter.de>
Author
Parents
Loading