@@ -6,7 +6,7 @@ import numpy as np
66from ._types import ScalarType , csr_arr , csr_mat
77from scipy .sparse import csc_array , csc_matrix
88
9- scalartype : ScalarType
9+ dtype : np . dtype [ ScalarType ]
1010
1111shape2 : tuple [int , int ]
1212
@@ -29,7 +29,7 @@ csc_spec3: tuple[
2929
3030# csc_matrix(D)
3131assert_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 ])
3333assert_type (csc_matrix (data2 , dtype = bool ), csc_matrix [np .bool_ ])
3434assert_type (csc_matrix (data2 , dtype = int ), csc_matrix [np .int_ ])
3535assert_type (csc_matrix (data2 , dtype = float ), csc_matrix [np .float64 ])
@@ -41,7 +41,7 @@ assert_type(csc_matrix(csr_mat), csc_matrix[ScalarType])
4141
4242# csc_matrix((M, N), [dtype])
4343assert_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 ])
4545assert_type (csc_matrix (shape2 , dtype = bool ), csc_matrix [np .bool_ ])
4646assert_type (csc_matrix (shape2 , dtype = int ), csc_matrix [np .int_ ])
4747assert_type (csc_matrix (shape2 , dtype = float ), csc_matrix [np .float64 ])
@@ -52,7 +52,7 @@ assert_type(csc_matrix(csc_spec2), csc_matrix[ScalarType])
5252assert_type (csc_matrix (csc_spec2 , shape2 ), csc_matrix [ScalarType ])
5353assert_type (csc_matrix (csc_spec2 , shape = shape2 ), csc_matrix [ScalarType ])
5454
55- assert_type (csc_matrix (csc_spec2 , dtype = scalartype ), csc_matrix [ScalarType ])
55+ assert_type (csc_matrix (csc_spec2 , dtype = dtype ), csc_matrix [ScalarType ])
5656assert_type (csc_matrix (csc_spec2 , dtype = bool ), csc_matrix [np .bool_ ])
5757assert_type (csc_matrix (csc_spec2 , dtype = int ), csc_matrix [np .int_ ])
5858assert_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
6464assert_type (csc_matrix (csc_spec3 , shape2 ), csc_matrix [ScalarType ]) # type: ignore[assert-type]
6565assert_type (csc_matrix (csc_spec3 , shape = shape2 ), csc_matrix [ScalarType ]) # type: ignore[assert-type]
6666
67- assert_type (csc_matrix (csc_spec3 , dtype = scalartype ), csc_matrix [ScalarType ])
67+ assert_type (csc_matrix (csc_spec3 , dtype = dtype ), csc_matrix [ScalarType ])
6868assert_type (csc_matrix (csc_spec3 , dtype = bool ), csc_matrix [np .bool_ ])
6969assert_type (csc_matrix (csc_spec3 , dtype = int ), csc_matrix [np .int_ ])
7070assert_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])
7575
7676# csc_array(D)
7777assert_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 ])
7979assert_type (csc_array (data2 , dtype = bool ), csc_array [np .bool_ ])
8080assert_type (csc_array (data2 , dtype = int ), csc_array [np .int_ ])
8181assert_type (csc_array (data2 , dtype = float ), csc_array [np .float64 ])
8282assert_type (csc_array (data2 , dtype = complex ), csc_array [np .complex128 ])
8383
84- # csc_matrix (S)
84+ # csc_array (S)
8585assert_type (csc_array (csr_arr ), csc_array [ScalarType ])
8686assert_type (csc_array (csr_mat ), csc_array [ScalarType ])
8787
8888# csc_array((M, N), [dtype])
8989assert_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 ])
9191assert_type (csc_array (shape2 , dtype = bool ), csc_array [np .bool_ ])
9292assert_type (csc_array (shape2 , dtype = int ), csc_array [np .int_ ])
9393assert_type (csc_array (shape2 , dtype = float ), csc_array [np .float64 ])
@@ -98,7 +98,7 @@ assert_type(csc_array(csc_spec2), csc_array[ScalarType])
9898assert_type (csc_array (csc_spec2 , shape2 ), csc_array [ScalarType ])
9999assert_type (csc_array (csc_spec2 , shape = shape2 ), csc_array [ScalarType ])
100100
101- assert_type (csc_array (csc_spec2 , dtype = scalartype ), csc_array [ScalarType ])
101+ assert_type (csc_array (csc_spec2 , dtype = dtype ), csc_array [ScalarType ])
102102assert_type (csc_array (csc_spec2 , dtype = bool ), csc_array [np .bool_ ])
103103assert_type (csc_array (csc_spec2 , dtype = int ), csc_array [np .int_ ])
104104assert_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-
110110assert_type (csc_array (csc_spec3 , shape2 ), csc_array [ScalarType ]) # type: ignore[assert-type]
111111assert_type (csc_array (csc_spec3 , shape = shape2 ), csc_array [ScalarType ]) # type: ignore[assert-type]
112112
113- assert_type (csc_array (csc_spec3 , dtype = scalartype ), csc_array [ScalarType ])
113+ assert_type (csc_array (csc_spec3 , dtype = dtype ), csc_array [ScalarType ])
114114assert_type (csc_array (csc_spec3 , dtype = bool ), csc_array [np .bool_ ])
115115assert_type (csc_array (csc_spec3 , dtype = int ), csc_array [np .int_ ])
116116assert_type (csc_array (csc_spec3 , dtype = float ), csc_array [np .float64 ])
0 commit comments