Make Awaitable.__await__'s result type's send arg Any (#11788)

This commit is contained in:
Kaleb Barrett
2024-04-25 10:09:33 -04:00
committed by GitHub
parent 71f020d174
commit 9ca0b20529

View File

@@ -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