Skip to content

Commit 65dede6

Browse files
bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870) (GH-26254)
(cherry picked from commit c054e8f) Co-authored-by: naglis <[email protected]>
1 parent 46f96f0 commit 65dede6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/contextlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ Functions and classes provided:
578578
The :meth:`close` method is not implemented, :meth:`aclose` must be used
579579
instead.
580580

581-
.. method:: enter_async_context(cm)
581+
.. coroutinemethod:: enter_async_context(cm)
582582

583583
Similar to :meth:`enter_context` but expects an asynchronous context
584584
manager.
@@ -592,7 +592,7 @@ Functions and classes provided:
592592

593593
Similar to :meth:`callback` but expects a coroutine function.
594594

595-
.. method:: aclose()
595+
.. coroutinemethod:: aclose()
596596

597597
Similar to :meth:`close` but properly handles awaitables.
598598

0 commit comments

Comments
 (0)