Skip to content

Commit 986f333

Browse files
update type hints
1 parent d8293c8 commit 986f333

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

asyncstdlib/itertools.pyi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ from ._typing import AnyIterable, ADD, T, T1, T2, T3, T4, T5
1616

1717
def cycle(iterable: AnyIterable[T]) -> AsyncIterator[T]: ...
1818
@overload
19-
def accumulate(iterable: AnyIterable[ADD]) -> AsyncIterator[ADD]: ...
19+
def accumulate(
20+
iterable: AnyIterable[ADD], *, initial: None = ...
21+
) -> AsyncIterator[ADD]: ...
2022
@overload
2123
def accumulate(iterable: AnyIterable[ADD], *, initial: ADD) -> AsyncIterator[ADD]: ...
2224
@overload
2325
def accumulate(
2426
iterable: AnyIterable[T],
2527
function: Callable[[T, T], T] | Callable[[T, T], Awaitable[T]],
28+
*,
29+
initial: None = ...,
2630
) -> AsyncIterator[T]: ...
2731
@overload
2832
def accumulate(

0 commit comments

Comments
 (0)