Skip to content

Commit

Permalink
Fix annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilGirdhar committed Nov 3, 2023
1 parent 9f838ab commit 9816dad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jax/_src/numpy/lax_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1958,6 +1958,14 @@ def block(arrays: ArrayLike | list[ArrayLike]) -> Array:
out, _ = _block(arrays)
return out

@overload
def atleast_1d(x: ArrayLike, /) -> Array:
...

@overload
def atleast_1d(x: ArrayLike, y: ArrayLike, /, *arys: ArrayLike) -> list[Array]:
...

@util._wraps(np.atleast_1d, update_doc=False, lax_description=_ARRAY_VIEW_DOC)
@jit
def atleast_1d(*arys: ArrayLike) -> Array | list[Array]:
Expand Down

0 comments on commit 9816dad

Please sign in to comment.