Skip to content

Commit f1b2fb5

Browse files
authored
Merge pull request numpy#27667 from jorenham/typing/fix-27660
TYP: Allow returning non-array-likes from the ``apply_along_axis`` function
2 parents a83bc02 + 0c31b8b commit f1b2fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/lib/_shape_base_impl.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def apply_along_axis(
9595
) -> NDArray[_SCT]: ...
9696
@overload
9797
def apply_along_axis(
98-
func1d: Callable[Concatenate[NDArray[Any], _P], ArrayLike],
98+
func1d: Callable[Concatenate[NDArray[Any], _P], Any],
9999
axis: SupportsIndex,
100100
arr: ArrayLike,
101101
*args: _P.args,

0 commit comments

Comments
 (0)