Skip to content

Commit e70a741

Browse files
committed
🐴 os-dependent false-positive overload-overlap workaround...
1 parent 3e899c2 commit e70a741

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/numpy-stubs/__init__.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,14 +1199,6 @@ class dtype(Generic[_ScalarT_co], metaclass=_DTypeMeta):
11991199
cls, dtype: _nt.ToDTypeUInt16, align: py_bool = False, copy: py_bool = False, metadata: _MetaData = ...
12001200
) -> dtypes.UInt16DType: ...
12011201
@overload
1202-
def __new__(
1203-
cls, dtype: _nt.ToDTypeInt32, align: py_bool = False, copy: py_bool = False, metadata: _MetaData = ...
1204-
) -> dtypes.Int32DType: ...
1205-
@overload
1206-
def __new__(
1207-
cls, dtype: _nt.ToDTypeUInt32, align: py_bool = False, copy: py_bool = False, metadata: _MetaData = ...
1208-
) -> dtypes.UInt32DType: ...
1209-
@overload
12101202
def __new__( # type: ignore[overload-overlap]
12111203
cls, dtype: _nt.ToDTypeLong, align: py_bool = False, copy: py_bool = False, metadata: _MetaData = ...
12121204
) -> dtypes.LongDType: ...
@@ -1215,6 +1207,14 @@ class dtype(Generic[_ScalarT_co], metaclass=_DTypeMeta):
12151207
cls, dtype: _nt.ToDTypeULong, align: py_bool = False, copy: py_bool = False, metadata: _MetaData = ...
12161208
) -> dtypes.ULongDType: ...
12171209
@overload
1210+
def __new__(
1211+
cls, dtype: _nt.ToDTypeInt32, align: py_bool = False, copy: py_bool = False, metadata: _MetaData = ...
1212+
) -> dtypes.Int32DType: ...
1213+
@overload
1214+
def __new__(
1215+
cls, dtype: _nt.ToDTypeUInt32, align: py_bool = False, copy: py_bool = False, metadata: _MetaData = ...
1216+
) -> dtypes.UInt32DType: ...
1217+
@overload
12181218
def __new__(
12191219
cls, dtype: _nt.ToDTypeInt64, align: py_bool = False, copy: py_bool = False, metadata: _MetaData = ...
12201220
) -> dtypes.Int64DType: ...

0 commit comments

Comments
 (0)