Skip to content

Commit 4132ce4

Browse files
try fix typing
1 parent 1bf8a69 commit 4132ce4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/arrays/string_.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,14 @@ def _get_common_dtype(self, dtypes: list[DtypeObj]) -> DtypeObj | None:
297297
else:
298298
return None
299299

300+
storage: str
300301
if len(storages) == 2:
301302
# if both python and pyarrow storage -> priority to pyarrow
302303
storage = "pyarrow"
303304
else:
304305
storage = next(iter(storages))
305306

307+
na_value: libmissing.NAType | float
306308
if len(na_values) == 2:
307309
# if both NaN and NA -> priority to NA
308310
na_value = libmissing.NA

0 commit comments

Comments
 (0)