From 6c3fe03d17b6a0265f34bc10217747c2cf2e2fa6 Mon Sep 17 00:00:00 2001 From: jorenham Date: Wed, 24 Dec 2025 11:38:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20gradual=20`NDArray`=20s?= =?UTF-8?q?hape-type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/numpy-stubs/_typing/_array_like.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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