From 241e741ef2df65cb7f1c55b09c94409a49f48969 Mon Sep 17 00:00:00 2001 From: Sidharth Kapur Date: Mon, 22 Feb 2016 17:41:47 -0600 Subject: [PATCH] Change Iterator to Iterable in type of reduce --- stdlib/3/functools.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/3/functools.pyi b/stdlib/3/functools.pyi index 7db91aaf5..7c0c0d7bb 100644 --- a/stdlib/3/functools.pyi +++ b/stdlib/3/functools.pyi @@ -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', [