Skip to content

Commit 9a75cc6

Browse files
bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870) (GH-26255)
(cherry picked from commit c054e8f) Co-authored-by: naglis <naglis@users.noreply.github.com>
1 parent 021169f commit 9a75cc6

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
@@ -463,7 +463,7 @@ Functions and classes provided:
463463
The :meth:`close` method is not implemented, :meth:`aclose` must be used
464464
instead.
465465

466-
.. method:: enter_async_context(cm)
466+
.. coroutinemethod:: enter_async_context(cm)
467467

468468
Similar to :meth:`enter_context` but expects an asynchronous context
469469
manager.
@@ -477,7 +477,7 @@ Functions and classes provided:
477477

478478
Similar to :meth:`callback` but expects a coroutine function.
479479

480-
.. method:: aclose()
480+
.. coroutinemethod:: aclose()
481481

482482
Similar to :meth:`close` but properly handles awaitables.
483483

0 commit comments

Comments
 (0)