]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41816: add `StrEnum` (GH-22337)
authorEthan Furman <ethan@stoneleaf.us>
Tue, 22 Sep 2020 00:23:13 +0000 (17:23 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Sep 2020 00:23:13 +0000 (17:23 -0700)
commit0063ff4e583505e69473caa978e476ea4c559b83
tree637c86f3b68e8d63678fb666c5cbf4e3326783c6
parent68526fe258da8c01196fd7cf48e8e5f1280bf8fd
bpo-41816: add `StrEnum` (GH-22337)

`StrEnum` ensures that its members were already strings, or intended to
be strings.
Doc/library/enum.rst
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2020-09-19-12-22-08.bpo-41816.ynynXJ.rst [new file with mode: 0644]