diff --git a/asyncstdlib/contextlib.pyi b/asyncstdlib/contextlib.pyi index 26a71b4..9170b67 100644 --- a/asyncstdlib/contextlib.pyi +++ b/asyncstdlib/contextlib.pyi @@ -60,7 +60,7 @@ def contextmanager( class closing(Generic[AClose]): def __init__(self, thing: AClose) -> None: ... - async def __aenter__(self: Self) -> Self: ... + async def __aenter__(self: Self) -> AClose: ... async def __aexit__( self, exc_type: type[BaseException] | None,