diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-11 12:10:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 12:10:02 (GMT) |
commit | 318f6ae1cd3c5936062ff2d16fa4f3d1f38ea802 (patch) | |
tree | 2a143399f32ce33a716b7c6a4969e1c4b55ca57f /Misc | |
parent | d63953d0f532fd4ed9615171b1f5699d5fff7db9 (diff) | |
download | cpython-318f6ae1cd3c5936062ff2d16fa4f3d1f38ea802.zip cpython-318f6ae1cd3c5936062ff2d16fa4f3d1f38ea802.tar.gz cpython-318f6ae1cd3c5936062ff2d16fa4f3d1f38ea802.tar.bz2 |
[3.11] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468) (#106621)
gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468)
For example:
class Flag(enum.Flag):
A = 0x01
B = 0x02
MASK = 0xff
~Flag.MASK is Flag(0)
(cherry picked from commit 95b7426f45edb570869a5513c142f29ed9f851a1)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-07-05-14-34-10.gh-issue-105497.HU5u89.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-07-05-14-34-10.gh-issue-105497.HU5u89.rst b/Misc/NEWS.d/next/Library/2023-07-05-14-34-10.gh-issue-105497.HU5u89.rst new file mode 100644 index 0000000..f4f2db0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-07-05-14-34-10.gh-issue-105497.HU5u89.rst @@ -0,0 +1 @@ +Fix flag mask inversion when unnamed flags exist. |