ID EN
Enum

__invert__(self):

Python 3.11

Returns all the flags in type(self) that are not in self:

Syntax

PYTHON
__invert__(self):

Examples

Example 1
PYTHON
>>> ~white
<Color: 0>
>>> ~purple
<Color.GREEN: 2>
>>> ~Color.RED
<Color.GREEN|BLUE: 6>