]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 19 May 2021 20:37:32 +0000 (13:37 -0700)
committerGitHub <noreply@github.com>
Wed, 19 May 2021 20:37:32 +0000 (21:37 +0100)
(cherry picked from commit c054e8f78f53035e06d6dc58c423d76c8a5fa39a)

Co-authored-by: naglis <naglis@users.noreply.github.com>
Doc/library/contextlib.rst

index b92f703509fcaccc0b8bf4b35b4cf3e2fdc6fcf4..dd903ce8ee9165666a73905218b4e6fcacebbd70 100644 (file)
@@ -578,7 +578,7 @@ Functions and classes provided:
    The :meth:`close` method is not implemented, :meth:`aclose` must be used
    instead.
 
-   .. method:: enter_async_context(cm)
+   .. coroutinemethod:: enter_async_context(cm)
 
       Similar to :meth:`enter_context` but expects an asynchronous context
       manager.
@@ -592,7 +592,7 @@ Functions and classes provided:
 
       Similar to :meth:`callback` but expects a coroutine function.
 
-   .. method:: aclose()
+   .. coroutinemethod:: aclose()
 
       Similar to :meth:`close` but properly handles awaitables.