Skip to content

Commit 8f7f66d

Browse files
committed
Fix type hints to support int and float.
1 parent 1a77509 commit 8f7f66d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

autobound/jax/jax_bound.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ def upper(self, x):
5858

5959

6060
def taylor_bounds(
61-
f: Callable[[jnp.ndarray], jnp.ndarray],
61+
f: Callable[[types.NDArrayLike], types.NDArrayLike],
6262
max_degree: int,
6363
propagate_trust_regions: bool = False,
64-
) -> Callable[[jnp.ndarray, tuple[jnp.ndarray, jnp.ndarray]], TaylorBounds]:
64+
) -> Callable[[types.NDArrayLike, tuple[types.NDArrayLike, types.NDArrayLike]], TaylorBounds]:
6565
"""Returns version of f that returns a TaylorBounds object.
6666
6767
Args:

0 commit comments

Comments
 (0)