From 9fbf2e1c0cecb6d4c855fa283e1f3c6030006485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rayan=20S=C3=B3stenes?= <885388+rayansostenes@users.noreply.github.com> Date: Thu, 30 Nov 2023 10:44:52 -0300 Subject: [PATCH] Fix: `functools.reduce` does not accept keyword arguments (#11090) --- stdlib/functools.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/functools.pyi b/stdlib/functools.pyi index 0d08cdb19..451896bed 100644 --- a/stdlib/functools.pyi +++ b/stdlib/functools.pyi @@ -36,9 +36,9 @@ _PWrapper = ParamSpec("_PWrapper") _RWrapper = TypeVar("_RWrapper") @overload -def reduce(function: Callable[[_T, _S], _T], sequence: Iterable[_S], initial: _T) -> _T: ... +def reduce(__function: Callable[[_T, _S], _T], __sequence: Iterable[_S], __initial: _T) -> _T: ... @overload -def reduce(function: Callable[[_T, _T], _T], sequence: Iterable[_T]) -> _T: ... +def reduce(__function: Callable[[_T, _T], _T], __sequence: Iterable[_T]) -> _T: ... class _CacheInfo(NamedTuple): hits: int