mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Make AsyncGeneratorType.aclose() properly return Awaitable[None] (#3032)
This commit is contained in:
committed by
Sebastian Rittau
parent
233f2abf19
commit
a7785151aa
@@ -113,7 +113,7 @@ if sys.version_info >= (3, 6):
|
||||
def athrow(self, val: BaseException) -> Awaitable[_T_co]: ...
|
||||
@overload
|
||||
def athrow(self, typ: Type[BaseException], val: BaseException, tb: TracebackType = ...) -> Awaitable[_T_co]: ...
|
||||
def aclose(self) -> Awaitable[_T_co]: ...
|
||||
def aclose(self) -> Awaitable[None]: ...
|
||||
|
||||
class CoroutineType:
|
||||
cr_await: Optional[Any]
|
||||
|
||||
Reference in New Issue
Block a user