We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The 'cast' option has subclassing support:
It also works with base classes - if T is a base class of type S, all fields of type S will be also "casted".
I'd love to see this in type_hooks as well.
One concrete use case that I have is I'd like to create Enums using their members' names (not values).
The text was updated successfully, but these errors were encountered:
I second that.
I currently use a decorator to register enums to the hooks individually but that adds unnecessary shared state that could be removed.
Sorry, something went wrong.
No branches or pull requests
The 'cast' option has subclassing support:
I'd love to see this in type_hooks as well.
One concrete use case that I have is I'd like to create Enums using their members' names (not values).
The text was updated successfully, but these errors were encountered: