Make AsyncGenerator.aclose() properly return Awaitable[None] (#2786)

Fixes #2785. The rationale is discussed there.
This commit is contained in:
Joshua Oreman
2019-02-11 01:35:17 -05:00
committed by Jelle Zijlstra
parent 9bbe60978e
commit f8612a77bb

View File

@@ -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]: ...