mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Fix type for reduce
This commit is contained in:
@@ -9,8 +9,9 @@ from collections import namedtuple
|
||||
_AnyCallable = Callable[..., Any]
|
||||
|
||||
_T = TypeVar("_T")
|
||||
def reduce(function: Callable[[_T], _T],
|
||||
sequence: Iterator[_T], initial: Optional[_T] = ...) -> _T: ...
|
||||
_S = TypeVar("_S")
|
||||
def reduce(function: Callable[[_T, _S], _T],
|
||||
sequence: Iterator[_S], initial: Optional[_T] = ...) -> _T: ...
|
||||
|
||||
|
||||
class CacheInfo(NamedTuple('CacheInfo', [
|
||||
|
||||
Reference in New Issue
Block a user