diff options
| author | Ethan Furman <ethan@stoneleaf.us> | 2020-12-10 12:20:06 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-10 12:20:06 -0800 |
| commit | efb13be72cbf49edf591936fafb120fe1b7d59f7 (patch) | |
| tree | b35ffdea85d002cac1789a48c99287e5ca75a358 /Lib/typing.py | |
| parent | 9fc571359af9320fddbe4aa2710a767f168c1707 (diff) | |
| download | cpython-git-efb13be72cbf49edf591936fafb120fe1b7d59f7.tar.gz | |
bpo-42385: [Enum] add `_generate_next_value_` to StrEnum (GH-23735)
The default for auto() is to return an integer, which doesn't work for `StrEnum`. The new `_generate_next_value_` for `StrEnum` returns the member name, lower cased.
Diffstat (limited to 'Lib/typing.py')
0 files changed, 0 insertions, 0 deletions
