@@ -542,16 +542,18 @@ class AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]):
542
542
class AsyncGenerator (AsyncIterator [_YieldT_co ], Generic [_YieldT_co , _SendT_contra ]):
543
543
def __anext__ (self ) -> Awaitable [_YieldT_co ]: ...
544
544
@abstractmethod
545
- def asend (self , value : _SendT_contra , / ) -> Awaitable [ _YieldT_co ]: ...
545
+ def asend (self , value : _SendT_contra , / ) -> Coroutine [ Any , Any , _YieldT_co ]: ...
546
546
@overload
547
547
@abstractmethod
548
548
def athrow (
549
549
self , typ : type [BaseException ], val : BaseException | object = None , tb : TracebackType | None = None , /
550
- ) -> Awaitable [ _YieldT_co ]: ...
550
+ ) -> Coroutine [ Any , Any , _YieldT_co ]: ...
551
551
@overload
552
552
@abstractmethod
553
- def athrow (self , typ : BaseException , val : None = None , tb : TracebackType | None = None , / ) -> Awaitable [_YieldT_co ]: ...
554
- def aclose (self ) -> Awaitable [None ]: ...
553
+ def athrow (
554
+ self , typ : BaseException , val : None = None , tb : TracebackType | None = None , /
555
+ ) -> Coroutine [Any , Any , _YieldT_co ]: ...
556
+ def aclose (self ) -> Coroutine [Any , Any , None ]: ...
555
557
@property
556
558
def ag_await (self ) -> Any : ...
557
559
@property
0 commit comments