mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Change Iterator to Iterable in type of reduce
This commit is contained in:
@@ -12,10 +12,10 @@ _T = TypeVar("_T")
|
||||
_S = TypeVar("_S")
|
||||
@overload
|
||||
def reduce(function: Callable[[_T, _S], _T],
|
||||
sequence: Iterator[_S], initial: _T) -> _T: ...
|
||||
sequence: Iterable[_S], initial: _T) -> _T: ...
|
||||
@overload
|
||||
def reduce(function: Callable[[_T, _T], _T],
|
||||
sequence: Iterator[_T]) -> _T: ...
|
||||
sequence: Iterable[_T]) -> _T: ...
|
||||
|
||||
|
||||
class CacheInfo(NamedTuple('CacheInfo', [
|
||||
|
||||
Reference in New Issue
Block a user