summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2023-07-11 11:35:54 (GMT)
committerGitHub <noreply@github.com>2023-07-11 11:35:54 (GMT)
commit95b7426f45edb570869a5513c142f29ed9f851a1 (patch)
tree30a92c43089fdfdafbf0b1dda0663727bb9fa31b /Misc
parentaf5cf1e75136fcef967d4ebe1bc45f29e6dc1bcf (diff)
downloadcpython-95b7426f45edb570869a5513c142f29ed9f851a1.zip
cpython-95b7426f45edb570869a5513c142f29ed9f851a1.tar.gz
cpython-95b7426f45edb570869a5513c142f29ed9f851a1.tar.bz2
gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (#106468)
For example: class Flag(enum.Flag): A = 0x01 B = 0x02 MASK = 0xff ~Flag.MASK is Flag(0)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-07-05-14-34-10.gh-issue-105497.HU5u89.rst1
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.