Skip to content

Commit

Permalink
No coroutinemethod in regular Sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoghlan committed May 23, 2024
1 parent ec50a11 commit 789e976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/contextlib2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.

Expand Down

0 comments on commit 789e976

Please sign in to comment.