File tree 3 files changed +11
-15
lines changed
3 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 133
133
ALL_INT_EA_DTYPES = UNSIGNED_INT_EA_DTYPES + SIGNED_INT_EA_DTYPES
134
134
ALL_INT_DTYPES : list [Dtype ] = [* ALL_INT_NUMPY_DTYPES , * ALL_INT_EA_DTYPES ]
135
135
136
- FLOAT_NUMPY_DTYPES : list [Dtype ] = [float , "float32" , "float64" ]
136
+ FLOAT_NUMPY_DTYPES : list [NpDtype ] = [float , "float32" , "float64" ]
137
137
FLOAT_EA_DTYPES : list [Dtype ] = ["Float32" , "Float64" ]
138
+ ALL_FLOAT_DTYPES : list [Dtype ] = [* FLOAT_NUMPY_DTYPES , * FLOAT_EA_DTYPES ]
139
+
138
140
COMPLEX_DTYPES : list [Dtype ] = [complex , "complex64" , "complex128" ]
139
141
STRING_DTYPES : list [Dtype ] = [str , "str" , "U" ]
140
142
146
148
OBJECT_DTYPES : list [Dtype ] = [object , "object" ]
147
149
148
150
ALL_REAL_NUMPY_DTYPES = FLOAT_NUMPY_DTYPES + ALL_INT_NUMPY_DTYPES
151
+ ALL_REAL_EXTENSION_DTYPES = FLOAT_EA_DTYPES + ALL_INT_EA_DTYPES
152
+ ALL_REAL_DTYPES : list [Dtype ] = [* ALL_REAL_NUMPY_DTYPES , * ALL_REAL_EXTENSION_DTYPES ]
153
+ ALL_NUMERIC_DTYPES : list [Dtype ] = [* ALL_REAL_DTYPES , * COMPLEX_DTYPES ]
154
+
149
155
ALL_NUMPY_DTYPES = (
150
156
ALL_REAL_NUMPY_DTYPES
151
157
+ COMPLEX_DTYPES
Original file line number Diff line number Diff line change @@ -1409,7 +1409,7 @@ def float_ea_dtype(request):
1409
1409
return request .param
1410
1410
1411
1411
1412
- @pytest .fixture (params = tm .FLOAT_NUMPY_DTYPES + tm . FLOAT_EA_DTYPES )
1412
+ @pytest .fixture (params = tm .ALL_FLOAT_DTYPES )
1413
1413
def any_float_dtype (request ):
1414
1414
"""
1415
1415
Parameterized fixture for float dtypes.
@@ -1614,9 +1614,7 @@ def any_real_numpy_dtype(request):
1614
1614
return request .param
1615
1615
1616
1616
1617
- @pytest .fixture (
1618
- params = tm .ALL_REAL_NUMPY_DTYPES + tm .ALL_INT_EA_DTYPES + tm .FLOAT_EA_DTYPES
1619
- )
1617
+ @pytest .fixture (params = tm .ALL_REAL_DTYPES )
1620
1618
def any_real_numeric_dtype (request ):
1621
1619
"""
1622
1620
Parameterized fixture for any (purely) real numeric dtype.
@@ -1676,12 +1674,7 @@ def any_numpy_dtype(request):
1676
1674
return request .param
1677
1675
1678
1676
1679
- @pytest .fixture (
1680
- params = tm .ALL_REAL_NUMPY_DTYPES
1681
- + tm .COMPLEX_DTYPES
1682
- + tm .ALL_INT_EA_DTYPES
1683
- + tm .FLOAT_EA_DTYPES
1684
- )
1677
+ @pytest .fixture (params = tm .ALL_NUMERIC_DTYPES )
1685
1678
def any_numeric_dtype (request ):
1686
1679
"""
1687
1680
Parameterized fixture for all numeric dtypes.
Original file line number Diff line number Diff line change @@ -2262,10 +2262,7 @@ def test_constructor_categorical_series(self):
2262
2262
2263
2263
@pytest .mark .parametrize (
2264
2264
"dtype" ,
2265
- tm .ALL_INT_NUMPY_DTYPES
2266
- + tm .ALL_INT_EA_DTYPES
2267
- + tm .FLOAT_NUMPY_DTYPES
2268
- + tm .COMPLEX_DTYPES
2265
+ tm .ALL_NUMERIC_DTYPES
2269
2266
+ tm .DATETIME64_DTYPES
2270
2267
+ tm .TIMEDELTA64_DTYPES
2271
2268
+ tm .BOOL_DTYPES ,
You can’t perform that action at this time.
0 commit comments