mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Fix name collision in contextlib on 3.7 (#1915)
This commit is contained in:
committed by
Jelle Zijlstra
parent
8891b02d51
commit
f91c891ad4
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user