>>> class Foo(enum.Enum):
... A = True
... B = 1
... C = 0
... D = False
...
>>> Foo.A
<Foo.A: True>
>>> Foo(True)
>>> Foo(1)