forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-96865: [Enum] fix Flag to use CONFORM boundary (pythonGH-97528)
(cherry picked from commit b44372e) Co-authored-by: Ethan Furman <[email protected]>
- Loading branch information
1 parent
eecbeec
commit b7b95ba
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Misc/NEWS.d/next/Library/2022-09-24-18-56-23.gh-issue-96865.o9WUkW.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |