Skip to content

Commit 8a6bfb0

Browse files
authored
Make AsyncExitStack generic on __aexit__ (#13888)
1 parent 1ccaa7f commit 8a6bfb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stdlib/contextlib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class AsyncExitStack(_BaseExitStack[_ExitT_co], metaclass=abc.ABCMeta):
179179
async def __aenter__(self) -> Self: ...
180180
async def __aexit__(
181181
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None, /
182-
) -> bool: ...
182+
) -> _ExitT_co: ...
183183

184184
if sys.version_info >= (3, 10):
185185
class nullcontext(AbstractContextManager[_T, None], AbstractAsyncContextManager[_T, None]):

0 commit comments

Comments
 (0)