Skip to content
New issue

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

Initialize converters from type annotations #2408

Open
vytas7 opened this issue Nov 12, 2024 · 0 comments
Open

Initialize converters from type annotations #2408

vytas7 opened this issue Nov 12, 2024 · 0 comments

Comments

@vytas7
Copy link
Member

vytas7 commented Nov 12, 2024

We could initialize converters from type annotations instead of the spec in the template.
This would be an optional feature that would probably need to be disabled by default in order to avoid breaking change.
The annotations would need to be consistent across all responders for the same parameter name, otherwise an instance of ValueError or subclass would be raised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant