Skip to content

Commit f547fab

Browse files
committed
mypy fixup
1 parent b165289 commit f547fab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,14 +551,14 @@ def _box_pa_array(
551551
dta = DatetimeArray._from_sequence(
552552
value, copy=copy, dtype=pass_dtype
553553
)
554-
mask = dta.isna()
554+
dta_mask = dta.isna()
555555
value_i8 = cast("npt.NDArray", dta.view("i8"))
556556
if not value_i8.flags["WRITEABLE"]:
557557
# e.g. test_setitem_frame_2d_values
558558
value_i8 = value_i8.copy()
559559
dta = DatetimeArray._from_sequence(value_i8, dtype=dta.dtype)
560-
value_i8[mask] = 0 # GH#61776 avoid __sub__ overflow
561-
pa_array = pa.array(dta._ndarray, type=pa_type, mask=mask)
560+
value_i8[dta_mask] = 0 # GH#61776 avoid __sub__ overflow
561+
pa_array = pa.array(dta._ndarray, type=pa_type, mask=dta_mask)
562562
return pa_array
563563

564564
mask = None

0 commit comments

Comments
 (0)