-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Pytype resolves jnp.ndarray to Any #3784
Comments
Relevant discussion here: #943 |
Hi, are there any updates on this? How difficult would it be do get the correct behavior? And in anticipation of this, is there a type that we could define that would satisfy the check? Would the following be enough?
|
Now mypy can correctly check this snippet. |
There's good news and bad news on this. So if you are a downstream consumer of JAX, you cannot get pytype to type the (Inside Google, pytype supports type checking of external dependencies, and indeed, in that case, this bug is already fixed.) Since there's no action for us to take on the JAX side, closing. This will work great if and when pytype supports this. |
This is simple enough to reproduce:
$ pytype foo.py # Passes type checking.
The text was updated successfully, but these errors were encountered: