Fix name collision in contextlib on 3.7 (#1915)

This commit is contained in:
Ethan Smith
2018-02-24 09:25:47 -08:00
committed by Jelle Zijlstra
parent 8891b02d51
commit f91c891ad4

View File

@@ -68,7 +68,7 @@ if sys.version_info >= (3,):
if sys.version_info >= (3, 7):
from typing import Awaitable
_U = TypeVar('_U', bound='AsyncExitStack')
_S = TypeVar('_S', bound='AsyncExitStack')
_ExitCoroFunc = Callable[[Optional[Type[BaseException]],
Optional[BaseException],
@@ -86,6 +86,6 @@ if sys.version_info >= (3, 7):
*args: Any, **kwds: Any) -> Callable[..., None]: ...
def push_async_callback(self, callback: _CallbackCoroFunc,
*args: Any, **kwds: Any) -> _CallbackCoroFunc: ...
def pop_all(self: _U) -> _U: ...
def pop_all(self: _S) -> _S: ...
def aclose(self) -> Awaitable[None]: ...
def __aenter__(self: _U) -> Awaitable[_U]: ...
def __aenter__(self: _S) -> Awaitable[_S]: ...