]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine...
authornaglis <naglis@users.noreply.github.com>
Wed, 19 May 2021 20:36:05 +0000 (20:36 +0000)
committerGitHub <noreply@github.com>
Wed, 19 May 2021 20:36:05 +0000 (21:36 +0100)
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.