Skip to content

Commit f681e55

Browse files
authored
📌 bump optype to 0.9.0 (#423)
2 parents 8be16e6 + 452f835 commit f681e55

20 files changed

+121
-130
lines changed

‎pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ classifiers = [
2929
]
3030
requires-python = ">=3.10"
3131
dependencies = [
32-
"optype>=0.8.0",
32+
"optype>=0.9.0",
3333
]
3434

3535
[dependency-groups]

‎scipy-stubs/cluster/hierarchy.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ from typing import Any, Final, Literal, TypeAlias, TypedDict, overload, type_che
44
from typing_extensions import TypeVar, override
55

66
import numpy as np
7+
import optype as op
78
import optype.numpy as onp
8-
import optype.typing as opt
99
from scipy._lib._disjoint_set import DisjointSet
1010
from scipy._typing import Falsy, Truthy
1111
from scipy.spatial.distance import _Metric
@@ -179,7 +179,7 @@ def fcluster(
179179
Z: onp.ToArray2D,
180180
t: onp.ToFloat,
181181
criterion: _ClusterCriterion = "inconsistent",
182-
depth: opt.JustInt = 2,
182+
depth: op.JustInt = 2,
183183
R: onp.ToArrayND | None = None,
184184
monocrit: onp.ToArrayND | None = None,
185185
) -> onp.Array1D[np.int32]: ...
@@ -190,7 +190,7 @@ def fclusterdata(
190190
t: onp.ToFloat,
191191
criterion: _ClusterCriterion = "inconsistent",
192192
metric: _Metric = "euclidean",
193-
depth: opt.JustInt = 2,
193+
depth: op.JustInt = 2,
194194
method: _LinkageMethod = "single",
195195
R: onp.ToArrayND | None = None,
196196
) -> onp.Array1D[np.int32]: ...

‎scipy-stubs/interpolate/_fitpack_repro.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ from collections.abc import Callable, Generator
22
from typing import Any, Final, Literal, TypeAlias, type_check_only
33

44
import numpy as np
5+
import optype as op
56
import optype.numpy as onp
6-
import optype.typing as opt
77
from ._bsplines import BSpline
88

99
_Float: TypeAlias = float | np.float32 | np.float64 | np.longdouble
@@ -101,9 +101,9 @@ def generate_knots(
101101
w: onp.ToFloat1D | None = None,
102102
xb: onp.ToFloat | None = None,
103103
xe: onp.ToFloat | None = None,
104-
k: opt.JustInt = 3,
104+
k: op.JustInt = 3,
105105
s: onp.ToFloat = 0,
106-
nest: opt.JustInt | None = None,
106+
nest: op.JustInt | None = None,
107107
) -> Generator[onp.Array1D[np.float64]]: ...
108108

109109
#
@@ -114,10 +114,10 @@ def make_splrep(
114114
w: onp.ToFloat1D | None = None,
115115
xb: onp.ToFloat | None = None,
116116
xe: onp.ToFloat | None = None,
117-
k: opt.JustInt = 3,
117+
k: op.JustInt = 3,
118118
s: onp.ToFloat = 0,
119119
t: onp.ToFloat1D | None = None,
120-
nest: opt.JustInt | None = None,
120+
nest: op.JustInt | None = None,
121121
) -> BSpline: ...
122122

123123
#
@@ -128,8 +128,8 @@ def make_splprep(
128128
u: onp.ToFloat1D | None = None,
129129
ub: onp.ToFloat | None = None,
130130
ue: onp.ToFloat | None = None,
131-
k: opt.JustInt = 3,
131+
k: op.JustInt = 3,
132132
s: onp.ToFloat = 0,
133133
t: onp.ToFloat1D | None = None,
134-
nest: opt.JustInt | None = None,
134+
nest: op.JustInt | None = None,
135135
) -> tuple[BSpline, onp.Array1D[np.floating[Any]]]: ...

‎scipy-stubs/linalg/_special_matrices.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ from typing_extensions import TypeVar, deprecated
44

55
import numpy as np
66
import numpy.typing as npt
7+
import optype as op
78
import optype.numpy as onp
89
import optype.numpy.compat as npc
9-
import optype.typing as opt
1010
from scipy._typing import ConvMode
1111

1212
__all__ = [
@@ -249,11 +249,11 @@ def dft(n: onp.ToInt, scale: L["sqrtn", "n"] | None = None) -> _Complex2D: ...
249249

250250
#
251251
@overload
252-
def hadamard(n: onp.ToInt, dtype: type[opt.JustInt]) -> _Int2D: ...
252+
def hadamard(n: onp.ToInt, dtype: type[op.JustInt]) -> _Int2D: ...
253253
@overload
254-
def hadamard(n: onp.ToInt, dtype: type[opt.JustFloat]) -> _Float2D: ...
254+
def hadamard(n: onp.ToInt, dtype: type[op.JustFloat]) -> _Float2D: ...
255255
@overload
256-
def hadamard(n: onp.ToInt, dtype: type[opt.JustComplex]) -> _Complex2D: ...
256+
def hadamard(n: onp.ToInt, dtype: type[op.JustComplex]) -> _Complex2D: ...
257257
@overload
258258
def hadamard(n: onp.ToInt, dtype: _ToDType[_SCT]) -> onp.Array2D[_SCT]: ...
259259
@overload

‎scipy-stubs/sparse/_base.pyi

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import numpy as np
1010
import numpy.typing as npt
1111
import optype as op
1212
import optype.numpy as onp
13-
import optype.typing as opt
1413
from scipy._typing import Casting, Falsy, OrderCF
1514
from ._bsr import bsr_array, bsr_matrix
1615
from ._coo import coo_array, coo_matrix
@@ -166,11 +165,11 @@ class _spbase(Generic[_SCT_co, _ShapeT_co]):
166165
@overload # dense array-like bool
167166
def __init__(self: _spbase[np.bool_], /, arg1: _ToSparseSeq[bool], *, maxprint: int | None = 50) -> None: ...
168167
@overload # dense array-like int
169-
def __init__(self: _spbase[np.int_], /, arg1: _ToSparseSeq[opt.JustInt], *, maxprint: int | None = 50) -> None: ...
168+
def __init__(self: _spbase[np.int_], /, arg1: _ToSparseSeq[op.JustInt], *, maxprint: int | None = 50) -> None: ...
170169
@overload # dense array-like float
171-
def __init__(self: _spbase[np.float64], /, arg1: _ToSparseSeq[opt.JustFloat], *, maxprint: int | None = 50) -> None: ...
170+
def __init__(self: _spbase[np.float64], /, arg1: _ToSparseSeq[op.JustFloat], *, maxprint: int | None = 50) -> None: ...
172171
@overload # dense array-like cfloat
173-
def __init__(self: _spbase[np.complex128], /, arg1: _ToSparseSeq[opt.JustComplex], *, maxprint: int | None = 50) -> None: ...
172+
def __init__(self: _spbase[np.complex128], /, arg1: _ToSparseSeq[op.JustComplex], *, maxprint: int | None = 50) -> None: ...
174173
@overload # dense array-like real (pyright is wrong here)
175174
def __init__(self: _spbase[_CoFloat], /, arg1: _ToSparseSeq[float], *, maxprint: int | None = 50) -> None: ... # pyright: ignore[reportOverlappingOverload]
176175
@overload # dense array-like complex (pyright is wrong here)
@@ -330,17 +329,17 @@ class _spbase(Generic[_SCT_co, _ShapeT_co]):
330329
@overload # spmatrix[-Complex], /, other: array-like +Complex
331330
def __mul__(self: spmatrix[_FromComplex], /, other: _To2D[float, _ToComplex64]) -> onp.Array2D[_SCT_co]: ...
332331
@overload # spmatrix[+Bool], /, other: scalar- or matrix-like ~Int
333-
def __mul__(self: spmatrix[_ToBool], /, other: _SparseLike[opt.JustInt, Int]) -> spmatrix[Int]: ...
332+
def __mul__(self: spmatrix[_ToBool], /, other: _SparseLike[op.JustInt, Int]) -> spmatrix[Int]: ...
334333
@overload # spmatrix[+Bool], /, other: array-like ~Int
335-
def __mul__(self: spmatrix[_ToBool], /, other: _To2D[opt.JustInt, Int]) -> onp.Array2D[Int]: ...
334+
def __mul__(self: spmatrix[_ToBool], /, other: _To2D[op.JustInt, Int]) -> onp.Array2D[Int]: ...
336335
@overload # spmatrix[+Int], /, other: scalar- or matrix-like ~Float
337-
def __mul__(self: spmatrix[_ToInt], /, other: _SparseLike[opt.JustFloat, Float]) -> spmatrix[Float]: ...
336+
def __mul__(self: spmatrix[_ToInt], /, other: _SparseLike[op.JustFloat, Float]) -> spmatrix[Float]: ...
338337
@overload # spmatrix[+Int], /, other: array-like ~Float
339-
def __mul__(self: spmatrix[_ToInt], /, other: _To2D[opt.JustFloat, Float]) -> onp.Array2D[Float]: ...
338+
def __mul__(self: spmatrix[_ToInt], /, other: _To2D[op.JustFloat, Float]) -> onp.Array2D[Float]: ...
340339
@overload # spmatrix[+Float], /, other: scalar- or matrix-like ~Complex
341-
def __mul__(self: spmatrix[_ToFloat], /, other: _SparseLike[opt.JustComplex, Complex]) -> spmatrix[Complex]: ...
340+
def __mul__(self: spmatrix[_ToFloat], /, other: _SparseLike[op.JustComplex, Complex]) -> spmatrix[Complex]: ...
342341
@overload # spmatrix[+Float], /, other: array-like ~Complex
343-
def __mul__(self: spmatrix[_ToFloat], /, other: _To2D[opt.JustComplex, Complex]) -> onp.Array2D[Complex]: ...
342+
def __mul__(self: spmatrix[_ToFloat], /, other: _To2D[op.JustComplex, Complex]) -> onp.Array2D[Complex]: ...
344343
@overload # Self[+Bool], /, other: -Int
345344
def __mul__(self: _spbase[_ToBool], /, other: _FromIntT) -> _spbase[_FromIntT, _ShapeT_co]: ...
346345
@overload # Self[+Int], /, other: -Float
@@ -388,15 +387,15 @@ class _spbase(Generic[_SCT_co, _ShapeT_co]):
388387
@overload # spmatrix[+Bool], other: scalar- or matrix-like ~Int
389388
def __matmul__(self: spmatrix[_ToBool], other: _spbase[Int], /) -> _SpMatrixOut[Int]: ...
390389
@overload # spmatrix[+Bool], other: array-like ~Int
391-
def __matmul__(self: spmatrix[_ToBool], other: _To2D[opt.JustInt, Int], /) -> onp.Array2D[Int]: ...
390+
def __matmul__(self: spmatrix[_ToBool], other: _To2D[op.JustInt, Int], /) -> onp.Array2D[Int]: ...
392391
@overload # spmatrix[+Int], other: scalar- or matrix-like ~Float
393392
def __matmul__(self: spmatrix[_ToInt], other: _spbase[Float], /) -> _SpMatrixOut[Float]: ...
394393
@overload # spmatrix[+Int], other: array-like ~Float
395-
def __matmul__(self: spmatrix[_ToInt], other: _To2D[opt.JustFloat, Float], /) -> onp.Array2D[Float]: ...
394+
def __matmul__(self: spmatrix[_ToInt], other: _To2D[op.JustFloat, Float], /) -> onp.Array2D[Float]: ...
396395
@overload # spmatrix[+Float], other: scalar- or matrix-like ~Complex
397396
def __matmul__(self: spmatrix[_ToFloat], other: _spbase[Complex], /) -> _SpMatrixOut[Complex]: ...
398397
@overload # spmatrix[+Float], other: array-like ~Complex
399-
def __matmul__(self: spmatrix[_ToFloat], other: _To2D[opt.JustComplex, Complex], /) -> onp.Array2D[Complex]: ...
398+
def __matmul__(self: spmatrix[_ToFloat], other: _To2D[op.JustComplex, Complex], /) -> onp.Array2D[Complex]: ...
400399
@overload # catch-all
401400
def __matmul__(self, other: _To2DLike[complex, Scalar] | _spbase, /) -> _spbase[Any, Any] | onp.Array[Any, Any]: ...
402401

@@ -457,11 +456,11 @@ class _spbase(Generic[_SCT_co, _ShapeT_co]):
457456
@overload # Self[-Complex], /, other: scalar-like +Complex
458457
def dot(self: _SpFromComplexT, /, other: onp.ToComplex) -> _SpFromComplexT: ...
459458
@overload # spmatrix[+Bool], /, other: scalar-like ~Int
460-
def dot(self: spmatrix[_ToBool], /, other: opt.JustInt) -> spmatrix[Int]: ...
459+
def dot(self: spmatrix[_ToBool], /, other: op.JustInt) -> spmatrix[Int]: ...
461460
@overload # spmatrix[+Int], /, other: scalar-like ~Float
462-
def dot(self: spmatrix[_ToInt], /, other: opt.JustFloat) -> spmatrix[Float]: ...
461+
def dot(self: spmatrix[_ToInt], /, other: op.JustFloat) -> spmatrix[Float]: ...
463462
@overload # spmatrix[+Float], /, other: scalar-like ~Complex
464-
def dot(self: spmatrix[_ToFloat], /, other: opt.JustComplex) -> spmatrix[Complex]: ...
463+
def dot(self: spmatrix[_ToFloat], /, other: op.JustComplex) -> spmatrix[Complex]: ...
465464
@overload # sparray[-Bool], /, other: sparse +Bool
466465
def dot(self: _SpArray, /, other: _spbase[_ToBool | _SCT_co]) -> _SpArrayOut[_SCT_co]: ...
467466
@overload # sparray[-Bool], /, other: array-like +Bool
@@ -499,15 +498,15 @@ class _spbase(Generic[_SCT_co, _ShapeT_co]):
499498
@overload # spmatrix[+Bool], /, other: scalar- or matrix-like ~Int
500499
def dot(self: spmatrix[_ToBool], /, other: _spbase[Int]) -> _SpMatrixOut[Int]: ...
501500
@overload # spmatrix[+Bool], /, other: array-like ~Int
502-
def dot(self: spmatrix[_ToBool], /, other: _To2D[opt.JustInt, Int]) -> onp.Array2D[Int]: ...
501+
def dot(self: spmatrix[_ToBool], /, other: _To2D[op.JustInt, Int]) -> onp.Array2D[Int]: ...
503502
@overload # spmatrix[+Int], /, other: scalar- or matrix-like ~Float
504503
def dot(self: spmatrix[_ToInt], /, other: _spbase[Float]) -> _SpMatrixOut[Float]: ...
505504
@overload # spmatrix[+Int], /, other: array-like ~Float
506-
def dot(self: spmatrix[_ToInt], /, other: _To2D[opt.JustFloat, Float]) -> onp.Array2D[Float]: ...
505+
def dot(self: spmatrix[_ToInt], /, other: _To2D[op.JustFloat, Float]) -> onp.Array2D[Float]: ...
507506
@overload # spmatrix[+Float], /, other: scalar- or matrix-like ~Complex
508507
def dot(self: spmatrix[_ToFloat], /, other: _spbase[Complex]) -> _SpMatrixOut[Complex]: ...
509508
@overload # spmatrix[+Float], /, other: array-like ~Complex
510-
def dot(self: spmatrix[_ToFloat], /, other: _To2D[opt.JustComplex, Complex]) -> onp.Array2D[Complex]: ...
509+
def dot(self: spmatrix[_ToFloat], /, other: _To2D[op.JustComplex, Complex]) -> onp.Array2D[Complex]: ...
511510
@overload # catch-all
512511
def dot(self, /, other: _To2DLike[complex, Scalar] | _spbase) -> _spbase[Any, Any] | onp.Array[Any, Any]: ...
513512

‎scipy-stubs/sparse/_bsr.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ from typing import Any, Generic, Literal, TypeAlias, overload
33
from typing_extensions import TypeIs, TypeVar, override
44

55
import numpy as np
6+
import optype as op
67
import optype.numpy as onp
7-
import optype.typing as opt
88
from ._base import _spbase, sparray
99
from ._compressed import _cs_matrix
1010
from ._data import _minmax_mixin
@@ -80,9 +80,9 @@ class _bsr_base(_cs_matrix[_SCT, tuple[int, int]], _minmax_mixin[_SCT, tuple[int
8080
def __init__(
8181
self: _bsr_base[np.int_],
8282
/,
83-
arg1: _ToMatrixPy[opt.JustInt],
83+
arg1: _ToMatrixPy[op.JustInt],
8484
shape: ToShape2d | None = None,
85-
dtype: type[opt.JustInt] | onp.AnyIntPDType | None = None,
85+
dtype: type[op.JustInt] | onp.AnyIntPDType | None = None,
8686
copy: bool = False,
8787
blocksize: tuple[int, int] | None = None,
8888
*,
@@ -92,9 +92,9 @@ class _bsr_base(_cs_matrix[_SCT, tuple[int, int]], _minmax_mixin[_SCT, tuple[int
9292
def __init__(
9393
self: _bsr_base[np.float64],
9494
/,
95-
arg1: _ToMatrixPy[opt.JustFloat],
95+
arg1: _ToMatrixPy[op.JustFloat],
9696
shape: ToShape2d | None = None,
97-
dtype: type[opt.JustFloat] | onp.AnyFloat64DType | None = None,
97+
dtype: type[op.JustFloat] | onp.AnyFloat64DType | None = None,
9898
copy: bool = False,
9999
blocksize: tuple[int, int] | None = None,
100100
*,
@@ -104,9 +104,9 @@ class _bsr_base(_cs_matrix[_SCT, tuple[int, int]], _minmax_mixin[_SCT, tuple[int
104104
def __init__(
105105
self: _bsr_base[np.complex128],
106106
/,
107-
arg1: _ToMatrixPy[opt.JustComplex],
107+
arg1: _ToMatrixPy[op.JustComplex],
108108
shape: ToShape2d | None = None,
109-
dtype: type[opt.JustComplex] | onp.AnyComplex128DType | None = None,
109+
dtype: type[op.JustComplex] | onp.AnyComplex128DType | None = None,
110110
copy: bool = False,
111111
blocksize: tuple[int, int] | None = None,
112112
*,

‎scipy-stubs/sparse/_compressed.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ from typing_extensions import Self, TypeVar, override
55

66
import numpy as np
77
import numpy.typing as npt
8+
import optype as op
89
import optype.numpy as onp
9-
import optype.typing as opt
1010
from ._base import _spbase
1111
from ._data import _data_matrix, _minmax_mixin
1212
from ._index import IndexMixin
@@ -162,7 +162,7 @@ class _cs_matrix(
162162
def __init__(
163163
self: _cs_matrix[np.int_, tuple[int]],
164164
/,
165-
arg1: Sequence[opt.JustInt],
165+
arg1: Sequence[op.JustInt],
166166
shape: ToShape1dNd | None = None,
167167
dtype: ToDTypeInt | None = None,
168168
copy: bool = False,
@@ -173,7 +173,7 @@ class _cs_matrix(
173173
def __init__(
174174
self: _cs_matrix[np.int_, tuple[int, int]],
175175
/,
176-
arg1: Sequence[Sequence[opt.JustInt]],
176+
arg1: Sequence[Sequence[op.JustInt]],
177177
shape: ToShape1dNd | None = None,
178178
dtype: ToDTypeInt | None = None,
179179
copy: bool = False,
@@ -184,7 +184,7 @@ class _cs_matrix(
184184
def __init__(
185185
self: _cs_matrix[np.float64, tuple[int]],
186186
/,
187-
arg1: Sequence[opt.JustFloat],
187+
arg1: Sequence[op.JustFloat],
188188
shape: ToShape1dNd | None = None,
189189
dtype: ToDTypeFloat | None = None,
190190
copy: bool = False,
@@ -195,7 +195,7 @@ class _cs_matrix(
195195
def __init__(
196196
self: _cs_matrix[np.float64, tuple[int, int]],
197197
/,
198-
arg1: Sequence[Sequence[opt.JustFloat]],
198+
arg1: Sequence[Sequence[op.JustFloat]],
199199
shape: ToShape1dNd | None = None,
200200
dtype: ToDTypeFloat | None = None,
201201
copy: bool = False,
@@ -206,7 +206,7 @@ class _cs_matrix(
206206
def __init__(
207207
self: _cs_matrix[np.complex128, tuple[int]],
208208
/,
209-
arg1: Sequence[opt.JustComplex],
209+
arg1: Sequence[op.JustComplex],
210210
shape: ToShape1dNd | None = None,
211211
dtype: ToDTypeComplex | None = None,
212212
copy: bool = False,
@@ -217,7 +217,7 @@ class _cs_matrix(
217217
def __init__(
218218
self: _cs_matrix[np.complex128, tuple[int, int]],
219219
/,
220-
arg1: Sequence[Sequence[opt.JustComplex]],
220+
arg1: Sequence[Sequence[op.JustComplex]],
221221
shape: ToShape1dNd | None = None,
222222
dtype: ToDTypeComplex | None = None,
223223
copy: bool = False,

‎scipy-stubs/sparse/_coo.pyi

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import numpy as np
88
import numpy.typing as npt
99
import optype as op
1010
import optype.numpy as onp
11-
import optype.typing as opt
1211
from ._base import _spbase, sparray
1312
from ._data import _data_matrix, _minmax_mixin
1413
from ._matrix import spmatrix
@@ -39,7 +38,7 @@ _ToData: TypeAlias = tuple[onp.ArrayND[_SCT0], tuple[onp.ArrayND[Int]] | tuple[o
3938
_ToDense: TypeAlias = onp.ArrayND[_SCT0] | onp.SequenceND[onp.ArrayND[_SCT0]] | onp.SequenceND[_SCT0]
4039

4140
_ScalarOrDense: TypeAlias = onp.ArrayND[_SCT0] | _SCT0
42-
_JustND: TypeAlias = onp.SequenceND[opt.Just[_T]]
41+
_JustND: TypeAlias = onp.SequenceND[op.Just[_T]]
4342

4443
_SubInt: TypeAlias = np.bool_ | np.int8 | np.int16 | np.int32 | np.intp | np.int_ | np.uint8 | np.uint16
4544
_SubFloat: TypeAlias = np.bool_ | Int | np.float32 | np.float64
@@ -161,7 +160,7 @@ class _coo_base(_data_matrix[_SCT, _ShapeT_co], _minmax_mixin[_SCT, _ShapeT_co],
161160
def __init__(
162161
self: _coo_base[np.int_, tuple[int]],
163162
/,
164-
arg1: Sequence[opt.JustInt],
163+
arg1: Sequence[op.JustInt],
165164
shape: ToShape1d | None = None,
166165
dtype: ToDTypeInt | None = None,
167166
copy: bool = False,
@@ -172,7 +171,7 @@ class _coo_base(_data_matrix[_SCT, _ShapeT_co], _minmax_mixin[_SCT, _ShapeT_co],
172171
def __init__(
173172
self: _coo_base[np.int_, tuple[int, int]],
174173
/,
175-
arg1: Sequence[Sequence[opt.JustInt]],
174+
arg1: Sequence[Sequence[op.JustInt]],
176175
shape: ToShape2d | None = None,
177176
dtype: ToDTypeInt | None = None,
178177
copy: bool = False,
@@ -183,7 +182,7 @@ class _coo_base(_data_matrix[_SCT, _ShapeT_co], _minmax_mixin[_SCT, _ShapeT_co],
183182
def __init__(
184183
self: _coo_base[np.float64, tuple[int]],
185184
/,
186-
arg1: Sequence[opt.JustFloat],
185+
arg1: Sequence[op.JustFloat],
187186
shape: ToShape1d | None = None,
188187
dtype: ToDTypeFloat | None = None,
189188
copy: bool = False,
@@ -194,7 +193,7 @@ class _coo_base(_data_matrix[_SCT, _ShapeT_co], _minmax_mixin[_SCT, _ShapeT_co],
194193
def __init__(
195194
self: _coo_base[np.float64, tuple[int, int]],
196195
/,
197-
arg1: Sequence[Sequence[opt.JustFloat]],
196+
arg1: Sequence[Sequence[op.JustFloat]],
198197
shape: ToShape2d | None = None,
199198
dtype: ToDTypeFloat | None = None,
200199
copy: bool = False,
@@ -205,7 +204,7 @@ class _coo_base(_data_matrix[_SCT, _ShapeT_co], _minmax_mixin[_SCT, _ShapeT_co],
205204
def __init__(
206205
self: _coo_base[np.complex128, tuple[int]],
207206
/,
208-
arg1: Sequence[opt.JustComplex],
207+
arg1: Sequence[op.JustComplex],
209208
shape: ToShape1d | None = None,
210209
dtype: ToDTypeComplex | None = None,
211210
copy: bool = False,
@@ -216,7 +215,7 @@ class _coo_base(_data_matrix[_SCT, _ShapeT_co], _minmax_mixin[_SCT, _ShapeT_co],
216215
def __init__(
217216
self: _coo_base[np.complex128, tuple[int, int]],
218217
/,
219-
arg1: Sequence[Sequence[opt.JustComplex]],
218+
arg1: Sequence[Sequence[op.JustComplex]],
220219
shape: ToShape2d | None = None,
221220
dtype: ToDTypeComplex | None = None,
222221
copy: bool = False,

0 commit comments

Comments
 (0)