Skip to content

Commit 685e86f

Browse files
authored
Merge pull request #17 from YasithDSL/call_overload_err
Call overload err
2 parents 65dd644 + f77a81b commit 685e86f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pandas/core/missing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,10 @@ def func(yvalues: np.ndarray) -> None:
413413
**kwargs,
414414
)
415415

416-
np.apply_along_axis(func, axis, data)
416+
# error: No overload variant of "apply_along_axis" matches
417+
# argument types "Callable[[ndarray[Any, Any]], None]",
418+
# "int", "ndarray[Any, Any]"
419+
np.apply_along_axis(func, axis, data) # type: ignore[call-overload]
417420

418421

419422
def _index_to_interp_indices(index: Index, method: str) -> np.ndarray:

pandas/io/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ def get_handle(
917917
encoding=ioargs.encoding,
918918
errors=errors,
919919
newline="",
920-
) # type: ignore[arg-type]
920+
)
921921
handles.append(handle)
922922
# only marked as wrapped when the caller provided a handle
923923
is_wrapped = not (

0 commit comments

Comments
 (0)