Add AsyncGeneratorType.ag_suspended (#10288)

New in Python 3.12
This commit is contained in:
Nikita Sobolev
2023-06-09 10:40:23 +03:00
committed by GitHub
parent 919f1d0aca
commit f0e9ec11e4
2 changed files with 4 additions and 1 deletions

View File

@@ -376,6 +376,10 @@ class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]):
def ag_await(self) -> Awaitable[Any] | None: ...
__name__: str
__qualname__: str
if sys.version_info >= (3, 12):
@property
def ag_suspended(self) -> bool: ...
def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ...
def __anext__(self) -> Coroutine[Any, Any, _T_co]: ...
def asend(self, __val: _T_contra) -> Coroutine[Any, Any, _T_co]: ...