File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class StringDtype(StorageExtensionDtype):
110
110
"""
111
111
112
112
@property
113
- def name (self ) -> str :
113
+ def name (self ) -> str : # type: ignore[override]
114
114
if self ._na_value is libmissing .NA :
115
115
return "string"
116
116
else :
Original file line number Diff line number Diff line change @@ -135,7 +135,12 @@ def dtype_to_arrow_c_fmt(dtype: DtypeObj) -> str:
135
135
if format_str is not None :
136
136
return format_str
137
137
138
- if lib .is_np_dtype (dtype , "M" ):
138
+ if isinstance (dtype , pd .StringDtype ):
139
+ # TODO(infer_string) this should be LARGE_STRING for pyarrow storage,
140
+ # but current tests don't cover this distinction
141
+ return ArrowCTypes .STRING
142
+
143
+ elif lib .is_np_dtype (dtype , "M" ):
139
144
# Selecting the first char of resolution string:
140
145
# dtype.str -> '<M8[ns]' -> 'n'
141
146
resolution = np .datetime_data (dtype )[0 ][0 ]
You can’t perform that action at this time.
0 commit comments