From 789e976128d5e875e7ac64a5fb9f98246f16b257 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Thu, 23 May 2024 17:16:48 +1000 Subject: [PATCH] No coroutinemethod in regular Sphinx --- docs/contextlib2.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/contextlib2.rst b/docs/contextlib2.rst index 4d0fa6a..45d218a 100644 --- a/docs/contextlib2.rst +++ b/docs/contextlib2.rst @@ -615,7 +615,7 @@ Functions and classes provided: The :meth:`~ExitStack.close` method is not implemented; :meth:`aclose` must be used instead. - .. coroutinemethod:: enter_async_context(cm) + .. method:: enter_async_context(cm) Similar to :meth:`ExitStack.enter_context` but expects an asynchronous context manager. @@ -634,7 +634,7 @@ Functions and classes provided: Similar to :meth:`ExitStack.callback` but expects a coroutine function. - .. coroutinemethod:: aclose() + .. method:: aclose() Similar to :meth:`ExitStack.close` but properly handles awaitables.