Skip to content

Commit eb8950b

Browse files
committed
💡 remove now-resolved # pyright: ignore comments for false positives
1 parent c25c20a commit eb8950b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

‎src/numpy-stubs/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8147,7 +8147,7 @@ class float64(floating[_n._64], float): # type: ignore[misc]
81478147
@overload
81488148
def __rfloordiv__(self, x: _CoFloat64, /) -> Self: ...
81498149
@overload
8150-
def __rfloordiv__(self, x: _JustFloating | _nt.Just[inexact], /) -> floating: ... # pyright: ignore[reportIncompatibleMethodOverride]
8150+
def __rfloordiv__(self, x: _JustFloating | _nt.Just[inexact], /) -> floating: ...
81518151

81528152
# keep in sync with `__truediv__` (minus the complex overloads)
81538153
@overload
@@ -8159,7 +8159,7 @@ class float64(floating[_n._64], float): # type: ignore[misc]
81598159
@overload
81608160
def __rmod__(self, x: _CoFloat64, /) -> Self: ...
81618161
@overload
8162-
def __rmod__(self, x: _JustFloating | _nt.Just[inexact], /) -> floating: ... # pyright: ignore[reportIncompatibleMethodOverride]
8162+
def __rmod__(self, x: _JustFloating | _nt.Just[inexact], /) -> floating: ...
81638163

81648164
# keep in sync with `__truediv__` (minus the complex overloads)
81658165
@overload

‎src/numpy-stubs/ma/core.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class MaskedArray(np.ndarray[_ShapeT_co, _DTypeT_co]):
313313
@override
314314
def shape(self) -> _ShapeT_co: ...
315315
@shape.setter
316-
def shape(self: MaskedArray[_ShapeT], shape: _ShapeT, /) -> None: ... # pyright: ignore[reportIncompatibleMethodOverride]
316+
def shape(self: MaskedArray[_ShapeT], shape: _ShapeT, /) -> None: ...
317317

318318
#
319319
@property

‎src/numpy-stubs/matrixlib/defmatrix.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class matrix(np.ndarray[_ShapeT_co, _DTypeT_co]):
231231
#
232232
@property
233233
@override
234-
def T(self) -> matrix[_2D, _DTypeT_co]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
234+
def T(self) -> matrix[_2D, _DTypeT_co]: ... # type: ignore[override]
235235
def getT(self) -> matrix[_2D, _DTypeT_co]: ...
236236

237237
#

‎src/numpy-stubs/random/bit_generator.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class ISeedSequence(abc.ABC):
9393

9494
class ISpawnableSeedSequence(ISeedSequence, abc.ABC):
9595
@abc.abstractmethod
96-
def spawn(self, /, n_children: int) -> list[Self]: ...
96+
def spawn(self, /, n_children: int) -> Sequence[Self]: ...
9797

9898
class SeedlessSeedSequence(_GenerateStateMixin, ISpawnableSeedSequence):
9999
@override

‎src/numpy-stubs/testing/_private/utils.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class KnownFailureException(Exception): ...
129129
class IgnoreException(Exception): ...
130130

131131
# NOTE: `warnings.catch_warnings` is incorrectly defined as invariant in typeshed
132-
class clear_and_catch_warnings(warnings.catch_warnings[_W_co], Generic[_W_co]): # type: ignore[type-var] # pyright: ignore[reportInvalidTypeArguments]
132+
class clear_and_catch_warnings(warnings.catch_warnings[_W_co], Generic[_W_co]): # type: ignore[type-var]
133133
class_modules: ClassVar[tuple[types.ModuleType, ...]] = ()
134134
modules: Final[set[types.ModuleType]]
135135

0 commit comments

Comments
 (0)