Update accumulate signature to account for optional function arg (#896)

See https://docs.python.org/3/library/itertools.html#itertools.accumulate
This commit is contained in:
syrrim
2017-01-30 16:22:06 -05:00
committed by Guido van Rossum
parent fe15d91041
commit 9625cc738f

View File

@@ -17,7 +17,7 @@ def repeat(object: _T) -> Iterator[_T]: ...
@overload
def repeat(object: _T, times: int) -> Iterator[_T]: ...
def accumulate(iterable: Iterable[_T]) -> Iterator[_T]: ...
def accumulate(iterable: Iterable[_T], func: Callable[[_T, _T], _T] = ...) -> Iterator[_T]: ...
class chain(Iterator[_T], Generic[_T]):
def __init__(self, *iterables: Iterable[_T]) -> None: ...