Since one can create an Enum member values of any Data Type: Creating an Enum
Note: Enum member values
Member values can be anything: int, str, etc.. If the exact value is unimportant you may use auto instances and an appropriate value will be chosen for you. Care must be taken if you mix auto with other values.
Sometimes, I see repeating members values of type str :
from enum import Enum
class Color(Enum):
RED = "RED"
GREEN = "GREEN"
BLUE = "BLUE"
Is it considered as a bad practice to repeat members names with values of type str ?