]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-125316: Fix using partial() as Enum member (GH-125361)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 21 Oct 2024 13:31:42 +0000 (16:31 +0300)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2024 13:31:42 +0000 (16:31 +0300)
commit65e43ca6d936304622ec8b3cd2a9b264b3a3755b
tree9dd5cbb036750c908a52f8257fc5b672171c3ac7
parentd9dafc790dc7d9c04693f4546e6f607cc334008a
[3.13] gh-125316: Fix using partial() as Enum member (GH-125361)

A FutureWarning with suggestion to use enum.member() is now emitted
when the partial instance is used as an enum member.
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2024-10-12-15-49-17.gh-issue-125316.t15RnJ.rst [new file with mode: 0644]