mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-22 11:02:07 +08:00
Make Awaitable.__await__'s result type's send arg Any (#11788)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user