Skip to content

Commit 476aa44

Browse files
skip test for pyarrow + fix typing
1 parent a12b345 commit 476aa44

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pandas/_testing/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
if using_string_dtype():
111111
STRING_DTYPES: list[Dtype] = [str, "U"]
112112
else:
113-
STRING_DTYPES: list[Dtype] = [str, "str", "U"]
113+
STRING_DTYPES: list[Dtype] = [str, "str", "U"] # type: ignore[no-redef]
114114
COMPLEX_FLOAT_DTYPES: list[Dtype] = [*COMPLEX_DTYPES, *FLOAT_NUMPY_DTYPES]
115115

116116
DATETIME64_DTYPES: list[Dtype] = ["datetime64[ns]", "M8[ns]"]

pandas/tests/dtypes/test_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,8 @@ def test_pandas_dtype_ea_not_instance():
802802

803803

804804
def test_pandas_dtype_string_dtypes(string_storage):
805+
# TODO(infer_string) remove skip if "python" is supported
806+
pytest.importorskip("pyarrow")
805807
with pd.option_context("future.infer_string", True):
806808
with pd.option_context("string_storage", string_storage):
807809
result = pandas_dtype("str")

0 commit comments

Comments
 (0)