Skip to content

Commit ce0be30

Browse files
fixup
1 parent 998824a commit ce0be30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/arrays/string_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def __eq__(self, other: object) -> bool:
228228

229229
def __setstate__(self, state: MutableMapping[str, Any]) -> None:
230230
# back-compat for pandas < 2.3, where na_value did not yet exist
231-
self.storage = state.pop("storage", "python")
231+
self._storage = state.pop("storage", "python")
232232
self._na_value = state.pop("_na_value", libmissing.NA)
233233

234234
def __hash__(self) -> int:
@@ -323,7 +323,7 @@ def _get_common_dtype(self, dtypes: list[DtypeObj]) -> DtypeObj | None:
323323
# if both python and pyarrow storage -> priority to pyarrow
324324
storage = "pyarrow"
325325
else:
326-
storage = next(iter(storages)) # type: ignore[assignment]
326+
storage = next(iter(storages))
327327

328328
na_value: libmissing.NAType | float
329329
if len(na_values) == 2:

0 commit comments

Comments
 (0)