diff --git a/a_sync/iter.py b/a_sync/iter.py index 4618b529..1bb804bc 100644 --- a/a_sync/iter.py +++ b/a_sync/iter.py @@ -57,7 +57,7 @@ def __iter__(self) -> Iterator[T]: yield from ASyncIterator(self.__aiter__()) __slots__ = "__wrapped__", -AsyncGenFunc = Callable[P, Union[AsyncGenerator[Any, None, T], AsyncIterator[T]]] +AsyncGenFunc = Callable[P, Union[AsyncGenerator[T, None], AsyncIterator[T]]] class ASyncIterator(_AwaitableAsyncIterableMixin[T], Iterator[T]): """