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

Enumerations now use a fully-stringified type annotation. #543

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

patrick-kidger
Copy link
Owner

@patrick-kidger patrick-kidger commented Oct 5, 2023

This is mostly for simplicitly/compatibility with other libraries later down the line -- partially-stringified type annotations are a bit of a nightmare to parse.

@patrick-kidger patrick-kidger changed the title Enumerations now use a fully-stringified type annotation for compatibility with jaxtyping Enumerations now use a fully-stringified type annotation. Oct 5, 2023
This plays havoc with downstream parsing of annotations, e.g. in jaxtyping.
In practice we've added backward-compatibility for this one special case to jaxtyping, but worth fixing up here nonetheless.
@patrick-kidger patrick-kidger merged commit cea6f3d into main Oct 5, 2023
2 checks passed
@patrick-kidger patrick-kidger deleted the enum-annotation branch October 5, 2023 21:22
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.

1 participant