jax icon indicating copy to clipboard operation
jax copied to clipboard

Fix Pyright issue with the type of NotMapped

Open knyazer opened this issue 5 months ago • 0 comments

Newest pyright is not able to figure out that NotMapped is a type alias, the correct type annotation forces it to understand.

Can be reproduced and/or tested by running pyright on

from jax.interpreters.batching import NotMapped
x: NotMapped

discovered this when updating pyright for Equinox

knyazer avatar Sep 07 '24 20:09 knyazer