Make AsyncGeneratorType.aclose() properly return Awaitable[None] (#3032)

This commit is contained in:
Radu Matei Lăcraru
2019-06-05 10:20:23 +01:00
committed by Sebastian Rittau
parent 233f2abf19
commit a7785151aa

View File

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