Skip to content

Commit bdb471e

Browse files
committed
🐴 remove unused # type: ignore's
1 parent a777fc3 commit bdb471e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/numpy-stubs/__init__.pyi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,7 +2205,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
22052205

22062206
# keep in sync with __add__
22072207
@overload
2208-
def __radd__(self: NDArray[_NumberT], lhs: int | bool_, /) -> ndarray[_ShapeT_co, dtype[_NumberT]]: ... # type: ignore[misc]
2208+
def __radd__(self: NDArray[_NumberT], lhs: int | bool_, /) -> ndarray[_ShapeT_co, dtype[_NumberT]]: ...
22092209
@overload
22102210
def __radd__(self: NDArray[_NumberT], lhs: _ArrayLikeBool_co, /) -> NDArray[_NumberT]: ...
22112211
@overload
@@ -2317,7 +2317,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
23172317

23182318
# keep in sync with __sub__, minus the (datetime64, timedelta64) case
23192319
@overload
2320-
def __rsub__(self: NDArray[_NumberT], lhs: int | bool_, /) -> ndarray[_ShapeT_co, dtype[_NumberT]]: ... # type: ignore[misc]
2320+
def __rsub__(self: NDArray[_NumberT], lhs: int | bool_, /) -> ndarray[_ShapeT_co, dtype[_NumberT]]: ...
23212321
@overload
23222322
def __rsub__(self: NDArray[_NumberT], lhs: _ArrayLikeBool_co, /) -> NDArray[_NumberT]: ...
23232323
@overload
@@ -2423,7 +2423,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
24232423

24242424
# keep in sync with __mul__
24252425
@overload
2426-
def __rmul__(self: NDArray[_NumberT], lhs: int | bool_, /) -> ndarray[_ShapeT_co, dtype[_NumberT]]: ... # type: ignore[misc]
2426+
def __rmul__(self: NDArray[_NumberT], lhs: int | bool_, /) -> ndarray[_ShapeT_co, dtype[_NumberT]]: ...
24272427
@overload
24282428
def __rmul__(self: NDArray[_NumberT], lhs: _ArrayLikeBool_co, /) -> NDArray[_NumberT]: ...
24292429
@overload
@@ -2678,7 +2678,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
26782678

26792679
#
26802680
@overload
2681-
def __rfloordiv__(self: NDArray[_RealNumberT], lhs: int | bool_, /) -> ndarray[_ShapeT_co, dtype[_RealNumberT]]: ... # type: ignore[overload-overlap, misc] # pyright: ignore[reportOverlappingOverload]
2681+
def __rfloordiv__(self: NDArray[_RealNumberT], lhs: int | bool_, /) -> ndarray[_ShapeT_co, dtype[_RealNumberT]]: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
26822682
@overload
26832683
def __rfloordiv__(self: NDArray[_RealNumberT], lhs: _ArrayLikeBool_co, /) -> NDArray[_RealNumberT]: ... # type: ignore[overload-overlap]
26842684
@overload
@@ -2756,7 +2756,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
27562756

27572757
# keep in sync with __mod__
27582758
@overload
2759-
def __rmod__(self: NDArray[_RealNumberT], lhs: int | bool_, /) -> ndarray[_ShapeT_co, dtype[_RealNumberT]]: ... # type: ignore[overload-overlap, misc] # pyright: ignore[reportOverlappingOverload]
2759+
def __rmod__(self: NDArray[_RealNumberT], lhs: int | bool_, /) -> ndarray[_ShapeT_co, dtype[_RealNumberT]]: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
27602760
@overload
27612761
def __rmod__(self: NDArray[_RealNumberT], lhs: _ArrayLikeBool_co, /) -> NDArray[_RealNumberT]: ... # type: ignore[overload-overlap]
27622762
@overload
@@ -2830,7 +2830,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
28302830

28312831
# keep in sync with __divmod__
28322832
@overload
2833-
def __rdivmod__(self: NDArray[_RealNumberT], lhs: int | bool_, /) -> _2Tuple[ndarray[_ShapeT_co, dtype[_RealNumberT]]]: ... # type: ignore[overload-overlap, misc] # pyright: ignore[reportOverlappingOverload]
2833+
def __rdivmod__(self: NDArray[_RealNumberT], lhs: int | bool_, /) -> _2Tuple[ndarray[_ShapeT_co, dtype[_RealNumberT]]]: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
28342834
@overload
28352835
def __rdivmod__(self: NDArray[_RealNumberT], lhs: _ArrayLikeBool_co, /) -> _2Tuple[NDArray[_RealNumberT]]: ... # type: ignore[overload-overlap]
28362836
@overload
@@ -6192,7 +6192,7 @@ class complexfloating(inexact[_NBitT1, complex], Generic[_NBitT1, _NBitT2]):
61926192

61936193
#
61946194
@overload
6195-
def __radd__(self, x: inexact[_NBitT1] | _Complex64_co, /) -> Self: ... # type: ignore[misc]
6195+
def __radd__(self, x: inexact[_NBitT1] | _Complex64_co, /) -> Self: ...
61966196
@overload
61976197
def __radd__(self, x: inexact[_128Bit] | inexact[_96Bit], /) -> clongdouble: ...
61986198
@overload
@@ -6224,7 +6224,7 @@ class complexfloating(inexact[_NBitT1, complex], Generic[_NBitT1, _NBitT2]):
62246224

62256225
# keep in sync with `__radd__`
62266226
@overload
6227-
def __rsub__(self, x: inexact[_NBitT1] | _Complex64_co, /) -> Self: ... # type: ignore[misc]
6227+
def __rsub__(self, x: inexact[_NBitT1] | _Complex64_co, /) -> Self: ...
62286228
@overload
62296229
def __rsub__(self, x: inexact[_128Bit] | inexact[_96Bit], /) -> clongdouble: ...
62306230
@overload
@@ -6256,7 +6256,7 @@ class complexfloating(inexact[_NBitT1, complex], Generic[_NBitT1, _NBitT2]):
62566256

62576257
# keep in sync with `__radd__`
62586258
@overload
6259-
def __rmul__(self, x: inexact[_NBitT1] | _Complex64_co, /) -> Self: ... # type: ignore[misc]
6259+
def __rmul__(self, x: inexact[_NBitT1] | _Complex64_co, /) -> Self: ...
62606260
@overload
62616261
def __rmul__(self, x: inexact[_128Bit] | inexact[_96Bit], /) -> clongdouble: ...
62626262
@overload
@@ -6484,7 +6484,7 @@ class timedelta64(_IntegralMixin, generic[_TD64ItemT_co], Generic[_TD64ItemT_co]
64846484

64856485
#
64866486
@overload
6487-
def __rsub__(self, a: _IntLike_co, /) -> Self: ... # type: ignore[misc]
6487+
def __rsub__(self, a: _IntLike_co, /) -> Self: ...
64886488
@overload
64896489
def __rsub__(self, a: timedelta64[None], /) -> timedelta64[None]: ...
64906490
@overload

0 commit comments

Comments
 (0)