is it good idea to convert enum self.value to string inside of __str__
try to get everyone's opinion if I should add str(self.value) or just self.value to get value from each key in enum. One benefit is force str result as string. so when some stupid engineer put ny = 10234
I can still get string type value
from enum import Enum
class City(Enum):
def __str__(self):
return str(self.value)
ny = 'New York'
ca = 'New California'
nj = 'New Jersey'
RI = 'Rhode Island'
City.RI