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

Add support for parametrizing Decoders at runtime #415

Merged
merged 1 commit into from
May 23, 2023

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented May 23, 2023

Previously Decoder types could be parametrized in annotations, but only if __future__.annotations was imported (they only worked for static analysis tools like mypy/pyright). We now support parametrizing Decoder types in python code without __future__.annotations for Python 3.9+.

Fixes #414

Previously `Decoder` types could be parametrized in annotations, but
only if `__future__.annotations` was imported (they only worked for
static analysis tools like mypy/pyright). We now support parametrizing
`Decoder` types in python code without `__future__.annotations` for
Python 3.9+.
@jcrist jcrist force-pushed the support-runtime-type-parameter-decoders branch from 0fb651c to e5aee66 Compare May 23, 2023 04:58
@jcrist jcrist merged commit e5658ad into main May 23, 2023
@jcrist jcrist deleted the support-runtime-type-parameter-decoders branch May 23, 2023 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError with Decoder as a generic function argument
1 participant