File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 110
110
if using_string_dtype ():
111
111
STRING_DTYPES : list [Dtype ] = [str , "U" ]
112
112
else :
113
- STRING_DTYPES : list [Dtype ] = [str , "str" , "U" ]
113
+ STRING_DTYPES : list [Dtype ] = [str , "str" , "U" ] # type: ignore[no-redef]
114
114
COMPLEX_FLOAT_DTYPES : list [Dtype ] = [* COMPLEX_DTYPES , * FLOAT_NUMPY_DTYPES ]
115
115
116
116
DATETIME64_DTYPES : list [Dtype ] = ["datetime64[ns]" , "M8[ns]" ]
Original file line number Diff line number Diff line change @@ -802,6 +802,8 @@ def test_pandas_dtype_ea_not_instance():
802
802
803
803
804
804
def test_pandas_dtype_string_dtypes (string_storage ):
805
+ # TODO(infer_string) remove skip if "python" is supported
806
+ pytest .importorskip ("pyarrow" )
805
807
with pd .option_context ("future.infer_string" , True ):
806
808
with pd .option_context ("string_storage" , string_storage ):
807
809
result = pandas_dtype ("str" )
You can’t perform that action at this time.
0 commit comments