diff --git a/pandas/core/missing.py b/pandas/core/missing.py index 4170f35922198..ff2daae002731 100644 --- a/pandas/core/missing.py +++ b/pandas/core/missing.py @@ -413,7 +413,10 @@ def func(yvalues: np.ndarray) -> None: **kwargs, ) - np.apply_along_axis(func, axis, data) + # error: No overload variant of "apply_along_axis" matches + # argument types "Callable[[ndarray[Any, Any]], None]", + # "int", "ndarray[Any, Any]" + np.apply_along_axis(func, axis, data) # type: ignore[call-overload] def _index_to_interp_indices(index: Index, method: str) -> np.ndarray: diff --git a/pandas/io/common.py b/pandas/io/common.py index de70ed91c7dd4..8da3ca0218983 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -917,7 +917,7 @@ def get_handle( encoding=ioargs.encoding, errors=errors, newline="", - ) # type: ignore[arg-type] + ) handles.append(handle) # only marked as wrapped when the caller provided a handle is_wrapped = not (