Skip to content

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 self-requested a review January 10, 2024 10:53
@clement-bonnet clement-bonnet merged commit f6c9ef3 into instadeepai:main Jan 10, 2024
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.

2 participants