File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 107
107
108
108
COMPLEX_DTYPES : list [Dtype ] = [complex , "complex64" , "complex128" ]
109
109
STRING_DTYPES : list [Dtype ] = [str , "str" , "U" ]
110
+ COMPLEX_FLOAT_DTYPES : list [Dtype ] = [* COMPLEX_DTYPES , * FLOAT_NUMPY_DTYPES ]
110
111
111
112
DATETIME64_DTYPES : list [Dtype ] = ["datetime64[ns]" , "M8[ns]" ]
112
113
TIMEDELTA64_DTYPES : list [Dtype ] = ["timedelta64[ns]" , "m8[ns]" ]
Original file line number Diff line number Diff line change 84
84
Hashable ,
85
85
Iterator ,
86
86
)
87
- from typing import cast
88
-
89
- from pandas ._typing import Dtype
90
87
91
88
try :
92
89
import pyarrow as pa
@@ -1451,7 +1448,7 @@ def complex_dtype(request):
1451
1448
return request .param
1452
1449
1453
1450
1454
- @pytest .fixture (params = tm .COMPLEX_DTYPES + cast ( list [ Dtype ], tm . FLOAT_NUMPY_DTYPES ) )
1451
+ @pytest .fixture (params = tm .COMPLEX_FLOAT_DTYPES )
1455
1452
def complex_or_float_dtype (request ):
1456
1453
"""
1457
1454
Parameterized fixture for complex and numpy float dtypes.
You can’t perform that action at this time.
0 commit comments