Skip to content

Commit

Permalink
Fix mypy error with latest version of mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
eguiraud committed Nov 30, 2023
1 parent 7ec4856 commit 07fc72d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/correctionlib_gradients/_typedefs.py
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]

0 comments on commit 07fc72d

Please sign in to comment.