Ethan Furman <[email protected]> added the comment:

The other option is to continue to inherit from `str`, but override the 
`__str__` method:

    class MyEnum(str, enum.Enum):
        #
        def __str__(self):
            return self.value

----------

_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39081>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to