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

Half compatibility with typeguard v4. #273

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

patrick-kidger
Copy link
Owner

@patrick-kidger patrick-kidger commented Nov 19, 2024

If anyone is feeling intrepid enough to take on the many many issues for compatibility between typeguard v4 and jaxtyping, then this might be a useful starting point.

typeguard v4 does some pretty magical things in that it reparses your source code in order to add its own typechecking. Unfortunately this doesn't play well with how jaxtyping generates functions, with the appropriate signatures, as the place typechecking is applied.

So whilst this PR solves some issues, there are many test failures still present.

Ah, if only we were working in a properly-typed compiled language!

@patrick-kidger patrick-kidger marked this pull request as draft November 19, 2024 23:00
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