mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
Make AsyncGenerator.aclose() properly return Awaitable[None] (#2786)
Fixes #2785. The rationale is discussed there.
This commit is contained in:
committed by
Jelle Zijlstra
parent
9bbe60978e
commit
f8612a77bb
@@ -213,7 +213,7 @@ if sys.version_info >= (3, 6):
|
||||
tb: Any = ...) -> Awaitable[_T_co]: ...
|
||||
|
||||
@abstractmethod
|
||||
def aclose(self) -> Awaitable[_T_co]: ...
|
||||
def aclose(self) -> Awaitable[None]: ...
|
||||
|
||||
@abstractmethod
|
||||
def __aiter__(self) -> AsyncGenerator[_T_co, _T_contra]: ...
|
||||
|
||||
Reference in New Issue
Block a user