From 988429dbe0b411fcefcf4c7ddf206ecfa346159d Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Thu, 23 May 2024 17:20:23 +1000 Subject: [PATCH] :async: is the option in regular Sphinx --- docs/contextlib2.rst | 2 ++ 1 file changed, 2 insertions(+) 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.