mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
Use async def instead of def ... -> Awaitable in typing (#7105)
This commit is contained in:
@@ -232,15 +232,15 @@ class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]):
|
||||
ag_running: bool
|
||||
ag_code: CodeType
|
||||
def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ...
|
||||
def __anext__(self) -> Awaitable[_T_co]: ...
|
||||
def asend(self, __val: _T_contra) -> Awaitable[_T_co]: ...
|
||||
async def __anext__(self) -> _T_co: ...
|
||||
async def asend(self, __val: _T_contra) -> _T_co: ...
|
||||
@overload
|
||||
def athrow(
|
||||
async def athrow(
|
||||
self, __typ: type[BaseException], __val: BaseException | object = ..., __tb: TracebackType | None = ...
|
||||
) -> Awaitable[_T_co]: ...
|
||||
) -> _T_co: ...
|
||||
@overload
|
||||
def athrow(self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ...) -> Awaitable[_T_co]: ...
|
||||
def aclose(self) -> Awaitable[None]: ...
|
||||
async def athrow(self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ...) -> _T_co: ...
|
||||
async def aclose(self) -> None: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user