Skip to content

Commit ea6b991

Browse files
committed
🏷️ fix remaining stubtest errors in numpy.matrixlib
1 parent aeb23f6 commit ea6b991

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/numpy-stubs/matrixlib/defmatrix.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class matrix(np.ndarray[_ShapeT_co, _DTypeT_co]):
4848
__array_priority__: ClassVar[float] = 10.0 # pyright: ignore[reportIncompatibleMethodOverride]
4949

5050
#
51-
def __new__(cls, data: ArrayLike, dtype: DTypeLike | None = None, copy: bool = ...) -> Matrix: ...
51+
def __new__(subtype, data: ArrayLike, dtype: DTypeLike | None = None, copy: bool = ...) -> Matrix: ...
5252

5353
#
5454
@overload # type: ignore[override]
@@ -321,5 +321,3 @@ def asmatrix(data: ToBytes_nd, dtype: None = None) -> Matrix[np.bytes_]: ...
321321
def asmatrix(data: ToStr_nd, dtype: None = None) -> Matrix[np.str_]: ...
322322
@overload
323323
def asmatrix(data: ToGeneric_nd, dtype: DTypeLike | None) -> Matrix: ...
324-
325-
mat = asmatrix

0 commit comments

Comments
 (0)