@@ -6,7 +6,7 @@ import numpy as np
6
6
from ._types import ScalarType , csr_arr , csr_mat
7
7
from scipy .sparse import csc_array , csc_matrix
8
8
9
- scalartype : ScalarType
9
+ dtype : np . dtype [ ScalarType ]
10
10
11
11
shape2 : tuple [int , int ]
12
12
@@ -29,7 +29,7 @@ csc_spec3: tuple[
29
29
30
30
# csc_matrix(D)
31
31
assert_type (csc_matrix (data2 ), csc_matrix [ScalarType ])
32
- assert_type (csc_matrix (data2 , dtype = scalartype ), csc_matrix [ScalarType ])
32
+ assert_type (csc_matrix (data2 , dtype = dtype ), csc_matrix [ScalarType ])
33
33
assert_type (csc_matrix (data2 , dtype = bool ), csc_matrix [np .bool_ ])
34
34
assert_type (csc_matrix (data2 , dtype = int ), csc_matrix [np .int_ ])
35
35
assert_type (csc_matrix (data2 , dtype = float ), csc_matrix [np .float64 ])
@@ -41,7 +41,7 @@ assert_type(csc_matrix(csr_mat), csc_matrix[ScalarType])
41
41
42
42
# csc_matrix((M, N), [dtype])
43
43
assert_type (csc_matrix (shape2 ), csc_matrix [np .float64 ])
44
- assert_type (csc_matrix (shape2 , dtype = scalartype ), csc_matrix [ScalarType ])
44
+ assert_type (csc_matrix (shape2 , dtype = dtype ), csc_matrix [ScalarType ])
45
45
assert_type (csc_matrix (shape2 , dtype = bool ), csc_matrix [np .bool_ ])
46
46
assert_type (csc_matrix (shape2 , dtype = int ), csc_matrix [np .int_ ])
47
47
assert_type (csc_matrix (shape2 , dtype = float ), csc_matrix [np .float64 ])
@@ -52,7 +52,7 @@ assert_type(csc_matrix(csc_spec2), csc_matrix[ScalarType])
52
52
assert_type (csc_matrix (csc_spec2 , shape2 ), csc_matrix [ScalarType ])
53
53
assert_type (csc_matrix (csc_spec2 , shape = shape2 ), csc_matrix [ScalarType ])
54
54
55
- assert_type (csc_matrix (csc_spec2 , dtype = scalartype ), csc_matrix [ScalarType ])
55
+ assert_type (csc_matrix (csc_spec2 , dtype = dtype ), csc_matrix [ScalarType ])
56
56
assert_type (csc_matrix (csc_spec2 , dtype = bool ), csc_matrix [np .bool_ ])
57
57
assert_type (csc_matrix (csc_spec2 , dtype = int ), csc_matrix [np .int_ ])
58
58
assert_type (csc_matrix (csc_spec2 , dtype = float ), csc_matrix [np .float64 ])
@@ -64,7 +64,7 @@ assert_type(csc_matrix(csc_spec3), csc_matrix[ScalarType]) # type: ignore[asser
64
64
assert_type (csc_matrix (csc_spec3 , shape2 ), csc_matrix [ScalarType ]) # type: ignore[assert-type]
65
65
assert_type (csc_matrix (csc_spec3 , shape = shape2 ), csc_matrix [ScalarType ]) # type: ignore[assert-type]
66
66
67
- assert_type (csc_matrix (csc_spec3 , dtype = scalartype ), csc_matrix [ScalarType ])
67
+ assert_type (csc_matrix (csc_spec3 , dtype = dtype ), csc_matrix [ScalarType ])
68
68
assert_type (csc_matrix (csc_spec3 , dtype = bool ), csc_matrix [np .bool_ ])
69
69
assert_type (csc_matrix (csc_spec3 , dtype = int ), csc_matrix [np .int_ ])
70
70
assert_type (csc_matrix (csc_spec3 , dtype = float ), csc_matrix [np .float64 ])
@@ -75,19 +75,19 @@ assert_type(csc_matrix(csc_spec3, dtype=complex), csc_matrix[np.complex128])
75
75
76
76
# csc_array(D)
77
77
assert_type (csc_array (data2 ), csc_array [ScalarType ])
78
- assert_type (csc_array (data2 , dtype = scalartype ), csc_array [ScalarType ])
78
+ assert_type (csc_array (data2 , dtype = dtype ), csc_array [ScalarType ])
79
79
assert_type (csc_array (data2 , dtype = bool ), csc_array [np .bool_ ])
80
80
assert_type (csc_array (data2 , dtype = int ), csc_array [np .int_ ])
81
81
assert_type (csc_array (data2 , dtype = float ), csc_array [np .float64 ])
82
82
assert_type (csc_array (data2 , dtype = complex ), csc_array [np .complex128 ])
83
83
84
- # csc_matrix (S)
84
+ # csc_array (S)
85
85
assert_type (csc_array (csr_arr ), csc_array [ScalarType ])
86
86
assert_type (csc_array (csr_mat ), csc_array [ScalarType ])
87
87
88
88
# csc_array((M, N), [dtype])
89
89
assert_type (csc_array (shape2 ), csc_array [np .float64 ])
90
- assert_type (csc_array (shape2 , dtype = scalartype ), csc_array [ScalarType ])
90
+ assert_type (csc_array (shape2 , dtype = dtype ), csc_array [ScalarType ])
91
91
assert_type (csc_array (shape2 , dtype = bool ), csc_array [np .bool_ ])
92
92
assert_type (csc_array (shape2 , dtype = int ), csc_array [np .int_ ])
93
93
assert_type (csc_array (shape2 , dtype = float ), csc_array [np .float64 ])
@@ -98,7 +98,7 @@ assert_type(csc_array(csc_spec2), csc_array[ScalarType])
98
98
assert_type (csc_array (csc_spec2 , shape2 ), csc_array [ScalarType ])
99
99
assert_type (csc_array (csc_spec2 , shape = shape2 ), csc_array [ScalarType ])
100
100
101
- assert_type (csc_array (csc_spec2 , dtype = scalartype ), csc_array [ScalarType ])
101
+ assert_type (csc_array (csc_spec2 , dtype = dtype ), csc_array [ScalarType ])
102
102
assert_type (csc_array (csc_spec2 , dtype = bool ), csc_array [np .bool_ ])
103
103
assert_type (csc_array (csc_spec2 , dtype = int ), csc_array [np .int_ ])
104
104
assert_type (csc_array (csc_spec2 , dtype = float ), csc_array [np .float64 ])
@@ -110,7 +110,7 @@ assert_type(csc_array(csc_spec3), csc_array[ScalarType]) # type: ignore[assert-
110
110
assert_type (csc_array (csc_spec3 , shape2 ), csc_array [ScalarType ]) # type: ignore[assert-type]
111
111
assert_type (csc_array (csc_spec3 , shape = shape2 ), csc_array [ScalarType ]) # type: ignore[assert-type]
112
112
113
- assert_type (csc_array (csc_spec3 , dtype = scalartype ), csc_array [ScalarType ])
113
+ assert_type (csc_array (csc_spec3 , dtype = dtype ), csc_array [ScalarType ])
114
114
assert_type (csc_array (csc_spec3 , dtype = bool ), csc_array [np .bool_ ])
115
115
assert_type (csc_array (csc_spec3 , dtype = int ), csc_array [np .int_ ])
116
116
assert_type (csc_array (csc_spec3 , dtype = float ), csc_array [np .float64 ])
0 commit comments