Skip to content

Commit 25f1975

Browse files
try fix typing
1 parent 4132ce4 commit 25f1975

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/arrays/string_.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def __init__(
173173
elif na_value is not libmissing.NA:
174174
raise ValueError(f"'na_value' must be np.nan or pd.NA, got {na_value}")
175175

176-
self.storage = storage
176+
self.storage = cast(str, storage)
177177
self._na_value = na_value
178178

179179
def __repr__(self) -> str:
@@ -297,7 +297,6 @@ def _get_common_dtype(self, dtypes: list[DtypeObj]) -> DtypeObj | None:
297297
else:
298298
return None
299299

300-
storage: str
301300
if len(storages) == 2:
302301
# if both python and pyarrow storage -> priority to pyarrow
303302
storage = "pyarrow"

0 commit comments

Comments
 (0)