You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in #101273 , when mixing data types into an enum, the data type's methods can be lost:
fromenumimportStrEnum, autoclassBook(StrEnum):
author=auto()
title=auto()
isbn=auto()
Book.author# <Book.author: 'author'>Book.author.title()
# book object not callable exception, but 'Author' is expected
As mentioned in #101273 , when mixing data types into an enum, the data type's methods can be lost:
Linked PRs