From 9ca0b20529fbfa2f4bb69ed239ccce706543163b Mon Sep 17 00:00:00 2001 From: Kaleb Barrett Date: Thu, 25 Apr 2024 10:09:33 -0400 Subject: [PATCH] Make `Awaitable.__await__`'s result type's send arg `Any` (#11788) --- stdlib/typing.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index 0c7a4c850..4b80397bd 100644 --- a/stdlib/typing.pyi +++ b/stdlib/typing.pyi @@ -443,7 +443,7 @@ class AsyncContextManager(AbstractAsyncContextManager[_T_co, bool | None], Proto @runtime_checkable class Awaitable(Protocol[_T_co]): @abstractmethod - def __await__(self) -> Generator[Any, None, _T_co]: ... + def __await__(self) -> Generator[Any, Any, _T_co]: ... class Coroutine(Awaitable[_ReturnT_co], Generic[_YieldT_co, _SendT_contra, _ReturnT_co]): __name__: str