-
Notifications
You must be signed in to change notification settings - Fork 61
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
Bug with default argument binding #206
Comments
jaraujo98
changed the title
Bug with (default) argument binding
Bug with default argument binding
May 18, 2024
Ah! Perhaps we need a |
Oh, wow, I knew it should be something simple, but not this simple ahahah. I'll test it and submit a PR. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jaxtyping
fails to detect default arguments when they are not provided explicitly. See the following MRE:After digging a bit through the
jaxtyping
code, I found that the issue comes from the fact that the call tobound = param_signature.bind(*args, **kwargs)
injaxtyping._decorator.py:411
ignores default arguments. Manually patchingbound
with the default values in a debugger fixes the issue.The text was updated successfully, but these errors were encountered: