-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mypy error with latest version of mypy
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from typing import TypeAlias | ||
from typing import Any, TypeAlias | ||
|
||
import jax | ||
import numpy as np | ||
import numpy.typing | ||
|
||
# TODO: switch to use numpy.array_api.Array as _the_ array type. | ||
# Must wait for it to be out of experimental. | ||
# See https://numpy.org/doc/stable/reference/array_api.html. | ||
Value: TypeAlias = float | np.ndarray | jax.Array | list[float] | ||
Value: TypeAlias = float | numpy.typing.NDArray[Any] | jax.Array | list[float] |