Skip to content

Commit 9a16c78

Browse files
committed
Fix data type incompatible
1 parent 21b7dc4 commit 9a16c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@ def _mode(self, dropna: bool = True) -> Self:
25132513
# error: Incompatible return value type (got "Union[ExtensionArray,
25142514
# Tuple[np.ndarray, npt.NDArray[np.bool_]]", expected "Self")
25152515
result, _ = mode(self, dropna=dropna)
2516-
return result
2516+
return result # type: ignore[return-value]
25172517

25182518
def __array_ufunc__(self, ufunc: np.ufunc, method: str, *inputs, **kwargs):
25192519
if any(

0 commit comments

Comments
 (0)