Skip to content

Commit 48d3a81

Browse files
committed
Is this correct?
1 parent bac955b commit 48d3a81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/contextlib.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class _GeneratorContextManagerBase(Generic[_G_co]):
8787

8888
class _GeneratorContextManager(
8989
_GeneratorContextManagerBase[Generator[_T_co, _SendT_contra, _ReturnT_co]],
90-
AbstractContextManager[_T_co, _ExitT_co],
90+
AbstractContextManager[_T_co, bool | None],
9191
ContextDecorator[_ExcReturnT], # _ExcReturnT is inferred by the type checker
9292
):
9393
def __exit__(
@@ -104,7 +104,7 @@ if sys.version_info >= (3, 10):
104104

105105
class _AsyncGeneratorContextManager(
106106
_GeneratorContextManagerBase[AsyncGenerator[_T_co, _SendT_contra]],
107-
AbstractAsyncContextManager[_T_co, _ExitT_co],
107+
AbstractAsyncContextManager[_T_co, bool | None],
108108
AsyncContextDecorator[_ExcReturnT], # _ExcReturnT is inferred by the type checker
109109
):
110110
async def __aexit__(

0 commit comments

Comments
 (0)