Skip to content

scotchka/Enum

Repository files navigation

Build Status Coverage Status

Enum type that autoincrements values without explicit assignment

>>> from enum3 import Enum

>>> class Fruit(Enum):
...     apple
...     berry
...     cherry

>>> Fruit.apple
0

>>> Fruit.berry
1

>>> Fruit.cherry
2

Note: requires Python 3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages