Skip to content

Commit 2fd9779

Browse files
committed
type-ignore
1 parent 7f9571d commit 2fd9779

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/arrays/string_.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,8 @@ def _accumulate(self, name: str, *, skipna: bool = True, **kwargs) -> StringArra
947947
if tail is not None:
948948
np_result = np.hstack((np_result, tail))
949949
elif na_mask is not None:
950-
np_result = np.where(na_mask, self.dtype.na_value, np_result)
950+
# Argument 2 to "where" has incompatible type "NAType | float"
951+
np_result = np.where(na_mask, self.dtype.na_value, np_result) # type: ignore[arg-type]
951952

952953
result = type(self)(np_result)
953954
return result

0 commit comments

Comments
 (0)