Skip to content

Commit 1918655

Browse files
committed
🩹 use Rank* instead of Shape* in the ufunc introspection script
1 parent df96c5b commit 1918655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎tool/ufunc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import numpy as np
2929
import numpy._core.umath as um # noqa: PLC2701
3030

31-
_ScalarLike: TypeAlias = np.generic | np.ndarray["_nt.Shape0", np.dtype]
31+
_ScalarLike: TypeAlias = np.generic | np.ndarray["_nt.Rank0", np.dtype]
3232

3333
_EXTRA_SCALARS: Final[tuple[_ScalarLike, ...]] = (
3434
np.str_(""),

0 commit comments

Comments
 (0)