diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-05 23:32:16 (GMT) |
---|---|---|
committer | Pablo Galindo <pablogsal@gmail.com> | 2022-10-22 19:48:32 (GMT) |
commit | 1a788914ca6ad984f676701e01e970ec62472f9e (patch) | |
tree | 9cc528c4111ab8b4a71bc3682df0dfa540691234 /Misc | |
parent | a969af4eaa7d111b52832cb1d310c0ae46cc6402 (diff) | |
download | cpython-1a788914ca6ad984f676701e01e970ec62472f9e.zip cpython-1a788914ca6ad984f676701e01e970ec62472f9e.tar.gz cpython-1a788914ca6ad984f676701e01e970ec62472f9e.tar.bz2 |
gh-96865: [Enum] fix Flag to use CONFORM boundary (GH-97528)
(cherry picked from commit b44372e03c5461b6ad3d89763a9eb6cb82df07a4)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-09-24-18-56-23.gh-issue-96865.o9WUkW.rst | 9 |
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> |