summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2022-10-05 22:25:55 (GMT)
committerGitHub <noreply@github.com>2022-10-05 22:25:55 (GMT)
commitb44372e03c5461b6ad3d89763a9eb6cb82df07a4 (patch)
tree0f3396cba96005662979ef0a793a9b3d6047a064 /Misc
parentc206e53bb726fa795d10cfb0e8d1d1a1a5d1aaa7 (diff)
downloadcpython-b44372e03c5461b6ad3d89763a9eb6cb82df07a4.zip
cpython-b44372e03c5461b6ad3d89763a9eb6cb82df07a4.tar.gz
cpython-b44372e03c5461b6ad3d89763a9eb6cb82df07a4.tar.bz2
gh-96865: [Enum] fix Flag to use CONFORM boundary (GH-97528)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-09-24-18-56-23.gh-issue-96865.o9WUkW.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-09-24-18-56-23.gh-issue-96865.o9WUkW.rst b/Misc/NEWS.d/next/Library/2022-09-24-18-56-23.gh-issue-96865.o9WUkW.rst
new file mode 100644
index 0000000..b054fde
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-09-24-18-56-23.gh-issue-96865.o9WUkW.rst
@@ -0,0 +1,9 @@
+fix Flag to use boundary CONFORM
+
+This restores previous Flag behavior of allowing flags with non-sequential values to be combined; e.g.
+
+ class Skip(Flag):
+ TWO = 2
+ EIGHT = 8
+
+ Skip.TWO | Skip.EIGHT -> <Skip.TWO|EIGHT: 10>