mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Update stubtest for async and dunder pos only checking (#7333)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -236,15 +236,15 @@ class AsyncGeneratorType(AsyncGenerator[_T_co, _T_contra]):
|
||||
__name__: str
|
||||
__qualname__: str
|
||||
def __aiter__(self) -> AsyncGeneratorType[_T_co, _T_contra]: ...
|
||||
async def __anext__(self) -> _T_co: ...
|
||||
async def asend(self, __val: _T_contra) -> _T_co: ...
|
||||
def __anext__(self) -> Coroutine[Any, Any, _T_co]: ...
|
||||
def asend(self, __val: _T_contra) -> Coroutine[Any, Any, _T_co]: ...
|
||||
@overload
|
||||
async def athrow(
|
||||
self, __typ: type[BaseException], __val: BaseException | object = ..., __tb: TracebackType | None = ...
|
||||
) -> _T_co: ...
|
||||
@overload
|
||||
async def athrow(self, __typ: BaseException, __val: None = ..., __tb: TracebackType | None = ...) -> _T_co: ...
|
||||
async def aclose(self) -> None: ...
|
||||
def aclose(self) -> Coroutine[Any, Any, None]: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, __item: Any) -> GenericAlias: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user