mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
gh-96865: [Enum] fix Flag to use CONFORM boundary (GH-97528)
(cherry picked from commit b44372e03c
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
This commit is contained in:
parent
eecbeec083
commit
c9480d5ad5
3 changed files with 11 additions and 2 deletions
|
@ -1292,7 +1292,7 @@ class FlagBoundary(StrEnum):
|
|||
STRICT, CONFORM, EJECT, KEEP = FlagBoundary
|
||||
|
||||
|
||||
class Flag(Enum, boundary=STRICT):
|
||||
class Flag(Enum, boundary=CONFORM):
|
||||
"""
|
||||
Support for flags
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue