PyDocs

Nav

Data Types

EnumCheck.NAMED_FLAGS

enum

attribute of EnumCheck
Ensure that any flag groups/masks contain only named flags – useful when values are specified instead of being generated by auto():
1 Example
>>> from enum import Flag, verify, NAMED_FLAGS
>>> @verify(NAMED_FLAGS)
... class Color(Flag):
...     RED = 1
...     GREEN = 2
...     BLUE = 4
...     WHITE = 15
...     NEON = 31
Traceback (most recent call last):
...
ValueError: invalid Flag 'Color': aliases WHITE and NEON are missing combined values of 0x18 [use enum.show_flag_values(value) for details]
from the Python docs
See Also
No see-alsos for enum/EnumCheck.NAMED_FLAGS
0 Notes
No notes for EnumCheck.NAMED_FLAGS