mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 16:33:49 +08:00
Fix: functools.reduce does not accept keyword arguments (#11090)
This commit is contained in:
1 parent
d4bd6d96a0
commit
9fbf2e1c0c
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user