diff --git a/docs/contextlib2.rst b/docs/contextlib2.rst index 45d218a..0a8fbb3 100644 --- a/docs/contextlib2.rst +++ b/docs/contextlib2.rst @@ -616,6 +616,7 @@ Functions and classes provided: instead. .. method:: enter_async_context(cm) + :async: Similar to :meth:`ExitStack.enter_context` but expects an asynchronous context manager. @@ -635,6 +636,7 @@ Functions and classes provided: Similar to :meth:`ExitStack.callback` but expects a coroutine function. .. method:: aclose() + :async: Similar to :meth:`ExitStack.close` but properly handles awaitables.