PyDocs

Nav

Data Types

FlagBoundary.KEEP

enum

attribute of FlagBoundary
Out-of-range values are kept, and the Flag membership is kept. This is the default for IntFlag:
1 Example
>>> from enum import Flag, KEEP, auto
>>> class KeepFlag(Flag, boundary=KEEP):
...     RED = auto()
...     GREEN = auto()
...     BLUE = auto()
...
>>> KeepFlag(2**2 + 2**4)
<KeepFlag.BLUE|16: 20>
from the Python docs
See Also
No see-alsos for enum/FlagBoundary.KEEP
0 Notes
No notes for FlagBoundary.KEEP