diff --git a/src/numpy-stubs/_typing/_array_like.pyi b/src/numpy-stubs/_typing/_array_like.pyi index f8e03719..324cdb9f 100644 --- a/src/numpy-stubs/_typing/_array_like.pyi +++ b/src/numpy-stubs/_typing/_array_like.pyi @@ -14,7 +14,7 @@ _ScalarT_co = TypeVar("_ScalarT_co", bound=np.generic, covariant=True) _DTypeT = TypeVar("_DTypeT", bound=np.dtype) _DTypeT_co = TypeVar("_DTypeT_co", bound=np.dtype, covariant=True) -NDArray: TypeAlias = np.ndarray[_nt.Shape, np.dtype[_ScalarT_co]] +NDArray: TypeAlias = np.ndarray[_nt.AnyShape, np.dtype[_ScalarT_co]] # The `_SupportsArray` protocol only cares about the default dtype # (i.e. `dtype=None` or no `dtype` parameter at all) of the to-be returned