Skip to content

Commit 98dde9c

Browse files
authored
Mark some contextlib method arguments as positional-only (#6118)
1 parent 47e9788 commit 98dde9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/contextlib.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class ExitStack(ContextManager[ExitStack]):
7676
def __init__(self) -> None: ...
7777
def enter_context(self, cm: ContextManager[_T]) -> _T: ...
7878
def push(self, exit: _CM_EF) -> _CM_EF: ...
79-
def callback(self, callback: Callable[..., Any], *args: Any, **kwds: Any) -> Callable[..., Any]: ...
79+
def callback(self, __callback: Callable[..., Any], *args: Any, **kwds: Any) -> Callable[..., Any]: ...
8080
def pop_all(self: Self) -> Self: ...
8181
def close(self) -> None: ...
8282
def __enter__(self: Self) -> Self: ...
@@ -94,8 +94,8 @@ if sys.version_info >= (3, 7):
9494
def enter_async_context(self, cm: AsyncContextManager[_T]) -> Awaitable[_T]: ...
9595
def push(self, exit: _CM_EF) -> _CM_EF: ...
9696
def push_async_exit(self, exit: _ACM_EF) -> _ACM_EF: ...
97-
def callback(self, callback: Callable[..., Any], *args: Any, **kwds: Any) -> Callable[..., Any]: ...
98-
def push_async_callback(self, callback: _CallbackCoroFunc, *args: Any, **kwds: Any) -> _CallbackCoroFunc: ...
97+
def callback(self, __callback: Callable[..., Any], *args: Any, **kwds: Any) -> Callable[..., Any]: ...
98+
def push_async_callback(self, __callback: _CallbackCoroFunc, *args: Any, **kwds: Any) -> _CallbackCoroFunc: ...
9999
def pop_all(self: Self) -> Self: ...
100100
def aclose(self) -> Awaitable[None]: ...
101101
def __aenter__(self: Self) -> Awaitable[Self]: ...

0 commit comments

Comments
 (0)