Skip to content

Commit e80b5e8

Browse files
committed
🐴 appease mypy
1 parent 51028b3 commit e80b5e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scipy-stubs/sparse/_data.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ class _data_matrix(_spbase[_SCT_co, _ShapeT_co], Generic[_SCT_co, _ShapeT_co]):
7676
def __init__(self, /, arg1: onp.CanArrayND[_SCT_co], *, maxprint: int | None = None) -> None: ...
7777

7878
#
79-
def __imul__(self, rhs: _ScalarLike, /) -> Self: ... # type: ignore[misc,override]
80-
def __itruediv__(self, rhs: _ScalarLike, /) -> Self: ... # type: ignore[misc,override]
79+
@override
80+
def __imul__(self, rhs: _ScalarLike, /) -> Self: ... # type: ignore[override]
81+
@override
82+
def __itruediv__(self, rhs: _ScalarLike, /) -> Self: ... # type: ignore[override]
8183

8284
# NOTE: The following methods do not convert the scalar type
8385
def sign(self, /) -> Self: ...

0 commit comments

Comments
 (0)