Stub for typing.AsyncIterable should have __aiter__, not __anext__ (#1396) (#1419)

Fixes #1396.
This commit is contained in:
Ask Solem
2017-06-20 14:23:56 -07:00
committed by Guido van Rossum
parent b8b3146904
commit 5e74bb3efc

View File

@@ -155,7 +155,7 @@ class AwaitableGenerator(Generator[_T_co, _T_contra, _V_co], Awaitable[_V_co],
class AsyncIterable(Generic[_T_co]):
@abstractmethod
def __anext__(self) -> Awaitable[_T_co]: ...
def __aiter__(self) -> 'AsyncIterator[_T_co]': ...
class AsyncIterator(AsyncIterable[_T_co],
Generic[_T_co]):