From f91c891ad4bc2cc038adebf2222fbb08453434aa Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Sat, 24 Feb 2018 09:25:47 -0800 Subject: [PATCH] Fix name collision in contextlib on 3.7 (#1915) --- stdlib/2and3/contextlib.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/2and3/contextlib.pyi b/stdlib/2and3/contextlib.pyi index c7954ea37..3abaf61a8 100644 --- a/stdlib/2and3/contextlib.pyi +++ b/stdlib/2and3/contextlib.pyi @@ -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]: ...