Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
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