Skip to content

Commit b544f3c

Browse files
committed
TYP,BUG: Fix dtype type alias specialization issue in __init__.pyi
This was introduced in numpy#26858
1 parent 66e1e36 commit b544f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ _ArrayNumber_co: TypeAlias = NDArray[np.bool | number[Any]]
14131413
_ArrayTD64_co: TypeAlias = NDArray[np.bool | integer[Any] | timedelta64]
14141414

14151415
# Introduce an alias for `dtype` to avoid naming conflicts.
1416-
_dtype: TypeAlias = dtype
1416+
_dtype: TypeAlias = dtype[_ScalarType]
14171417

14181418
if sys.version_info >= (3, 13):
14191419
from types import CapsuleType as _PyCapsule

0 commit comments

Comments
 (0)