Skip to content

Commit 5e74bb3

Browse files
askgvanrossum
authored andcommitted
Stub for typing.AsyncIterable should have __aiter__, not __anext__ (#1396) (#1419)
Fixes #1396.
1 parent b8b3146 commit 5e74bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/3/typing.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class AwaitableGenerator(Generator[_T_co, _T_contra, _V_co], Awaitable[_V_co],
155155

156156
class AsyncIterable(Generic[_T_co]):
157157
@abstractmethod
158-
def __anext__(self) -> Awaitable[_T_co]: ...
158+
def __aiter__(self) -> 'AsyncIterator[_T_co]': ...
159159

160160
class AsyncIterator(AsyncIterable[_T_co],
161161
Generic[_T_co]):

0 commit comments

Comments
 (0)