Is there any way in python to declare an enum's variables without values?
The syntax that works:
from enum import Enum class Color(Enum): Red = 'Red' Blue = 'Blue' Green = 'Green' Since for this case the enum values are the same as the variable names, I'd like to avoid duplication.
Something like this maybe:
from enum import Enum class Color(Enum): Red Blue Green