Skip to content

Commit 60e547a

Browse files
committed
mypy fixup
1 parent a493648 commit 60e547a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/core/arrays/_arrow_string_mixins.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ def _str_get(self, i: int) -> Self:
9494
selected = pc.utf8_slice_codeunits(
9595
self._pa_array, start=start, stop=stop, step=step
9696
)
97-
null_value = pa.scalar(
98-
None,
99-
type=self._pa_array.type, # type: ignore[attr-defined]
100-
)
97+
null_value = pa.scalar(None, type=self._pa_array.type)
10198
result = pc.if_else(not_out_of_bounds, selected, null_value)
10299
return type(self)(result)
103100

0 commit comments

Comments
 (0)