Change Iterator to Iterable in type of reduce

This commit is contained in:
Sidharth Kapur
2016-02-22 17:41:47 -06:00
parent 2904b80369
commit 241e741ef2

View File

@@ -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', [