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
Describe the solution you'd like
Add support for additional argument, or extend "--use-subclass-enum" to allow choosing between (str, Enum) and StrEnum
Is your feature request related to a problem? Please describe.
Python 3.11 has introduced some breaking changes for enums when used in f-strings.
This behavior is different when using the new StrEnum:
This blog describes the problem:
https://blog.pecar.me/python-enum
Describe the solution you'd like
Add support for additional argument, or extend "--use-subclass-enum" to allow choosing between (str, Enum) and StrEnum
Or maybe even allow selecting base class for enums, for people using custom enum packages such as https://pypi.org/project/StrEnum/
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: