File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,16 @@ class HasDtypeAttribute(Protocol):
45
45
DimSize = Union [int , Any ] # extensible
46
46
Shape = Sequence [DimSize ]
47
47
48
- # Array is a type annotation for JAX arrays and tracers.
48
+ # Array is a type annotation for standard JAX arrays and tracers produced by
49
+ # core functions in jax.lax and jax.numpy; it is not meant to include
50
+ # future non-standard array types like KeyArray and BInt.
49
51
# For now we set it to Any; in the future this will be more restrictive
50
52
# (see https://github.com/google/jax/pull/11859)
51
53
# TODO(jakevdp): make this conform to the JEP 12049 plan.
52
54
Array = Any
53
55
54
- # ArrayLike is a Union of all objects that can be implicitly converted to a JAX array.
56
+ # ArrayLike is a Union of all objects that can be implicitly converted to a standard
57
+ # JAX array (i.e. not including future non-standard array types like KeyArray and BInt).
55
58
ArrayLike = Union [
56
59
Array , # JAX array type
57
60
np .ndarray , # NumPy array type
You can’t perform that action at this time.
0 commit comments