Skip to content

Commit

Permalink
Fix type annotation for array_api.broadcast_to
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <[email protected]>
  • Loading branch information
nstarman committed Feb 23, 2024
1 parent a63197f commit b9f2857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jax/experimental/array_api/_manipulation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def broadcast_arrays(*arrays: Array) -> list[Array]:
return jax.numpy.broadcast_arrays(*arrays)


def broadcast_to(x: Array, /, shape: tuple[int]) -> Array:
def broadcast_to(x: Array, /, shape: tuple[int, ...]) -> Array:
"""Broadcasts an array to a specified shape."""
return jax.numpy.broadcast_to(x, shape=shape)

Expand Down

0 comments on commit b9f2857

Please sign in to comment.