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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix matplotlib and jax typing issues #216

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

sash-a
Copy link
Collaborator

@sash-a sash-a commented Jan 9, 2024

Changes

Fixed mypy issues blocking pre-commit on python 3.9

  • Matplotlibs animation API seems to have changed in 3.8.x, so I pinned to 3.7.x (this was actually breaking all rendering as well as causing pre-commit issues)
  • Weird typing issue with JAX's dtype, I couldn't work it out so I added a type ignore :(

Jax typing issue

I anyone wants to try solve the jax issue instead of adding a type ignore:

The mypy error: jumanji/types.py:236: error: Returning Any from function declared to return "dtype[Any]" [no-any-return]

Seems like it thinks jnp.empty((), dtype).dtype returns Any, probably because jnp.empty(...) also returns Any, not really sure of a way around this 馃し.

@sash-a sash-a added the bug Something isn't working label Jan 9, 2024
@sash-a sash-a self-assigned this Jan 9, 2024
@dantp-ai dantp-ai mentioned this pull request Jan 10, 2024
3 tasks
@clement-bonnet clement-bonnet merged commit f6c9ef3 into instadeepai:main Jan 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants