-
Notifications
You must be signed in to change notification settings - Fork 62
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
Strange behavior with eqx.Module #100
Comments
What version of typeguard do you have installed? |
gives
I believe 4.1.0 version of typeguard is the latest pypi version available. I use Python 3.10.4, OS Ubuntu 22.04. |
Thanks! Okay, so I think this is a typeguard bug. If you write For now I'd suggest either ignoring the warning, or switching to typeguard version |
Thanks for debugging the problem for me. Yes, even in my original code this warning seems to be meaningless, since both jax-types and python-types mismatches are raised correctly. |
I encountered a strange behavior when trying to
install_import_hooks
for a class inherited from eqx.Module: there appears a warning that states about typechecker inability to wrap the init method, which to me seems strange, since eqx.Module is (promised to be) a dataclass.Warning message:
Minimal example:
I reckon there is a high chance I am simply not able to use the method correctly, and if so, I would appreciate any general feedback, or a short example of how to do it correctly. The problem seems to be directly related to issue 46.
The text was updated successfully, but these errors were encountered: