diff --git a/stdlib/types.pyi b/stdlib/types.pyi index fb31fbda6..6909c765c 100644 --- a/stdlib/types.pyi +++ b/stdlib/types.pyi @@ -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]: ... diff --git a/tests/stubtest_allowlists/py312.txt b/tests/stubtest_allowlists/py312.txt index 373b7c9c2..f9bf94fe4 100644 --- a/tests/stubtest_allowlists/py312.txt +++ b/tests/stubtest_allowlists/py312.txt @@ -163,7 +163,6 @@ turtle.TNavigator.teleport turtle.TPen.teleport turtle.__all__ turtle.teleport -types.AsyncGeneratorType.ag_suspended typing.ParamSpec.__mro_entries__ typing.ParamSpecArgs.__mro_entries__ typing.ParamSpecKwargs.__mro_entries__