Skip to content

Commit

Permalink
type-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach committed Feb 17, 2025
1 parent 7f9571d commit 2fd9779
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/core/arrays/string_.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,8 @@ def _accumulate(self, name: str, *, skipna: bool = True, **kwargs) -> StringArra
if tail is not None:
np_result = np.hstack((np_result, tail))
elif na_mask is not None:
np_result = np.where(na_mask, self.dtype.na_value, np_result)
# Argument 2 to "where" has incompatible type "NAType | float"
np_result = np.where(na_mask, self.dtype.na_value, np_result) # type: ignore[arg-type]

result = type(self)(np_result)
return result
Expand Down

0 comments on commit 2fd9779

Please sign in to comment.