Skip to content

Commit f0e9ec1

Browse files
authored
Add AsyncGeneratorType.ag_suspended (#10288)
New in Python 3.12
1 parent 919f1d0 commit f0e9ec1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

stdlib/types.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]):
376376
def ag_await(self) -> Awaitable[Any] | None: ...
377377
__name__: str
378378
__qualname__: str
379+
if sys.version_info >= (3, 12):
380+
@property
381+
def ag_suspended(self) -> bool: ...
382+
379383
def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ...
380384
def __anext__(self) -> Coroutine[Any, Any, _T_co]: ...
381385
def asend(self, __val: _T_contra) -> Coroutine[Any, Any, _T_co]: ...

tests/stubtest_allowlists/py312.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ turtle.TNavigator.teleport
163163
turtle.TPen.teleport
164164
turtle.__all__
165165
turtle.teleport
166-
types.AsyncGeneratorType.ag_suspended
167166
typing.ParamSpec.__mro_entries__
168167
typing.ParamSpecArgs.__mro_entries__
169168
typing.ParamSpecKwargs.__mro_entries__

0 commit comments

Comments
 (0)