We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db39050 commit b921dbcCopy full SHA for b921dbc
Lib/enum.py
@@ -1269,7 +1269,7 @@ class FlagBoundary(StrEnum):
1269
STRICT, CONFORM, EJECT, KEEP = FlagBoundary
1270
1271
1272
-class Flag(Enum, boundary=STRICT):
+class Flag(Enum, boundary=CONFORM):
1273
"""
1274
Support for flags
1275
Lib/test/test_enum.py
@@ -2927,7 +2927,7 @@ def test_bool(self):
2927
self.assertEqual(bool(f.value), bool(f))
2928
2929
def test_boundary(self):
2930
- self.assertIs(enum.Flag._boundary_, STRICT)
+ self.assertIs(enum.Flag._boundary_, CONFORM)
2931
class Iron(Flag, boundary=STRICT):
2932
ONE = 1
2933
TWO = 2
0 commit comments