summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-19 20:37:32 (GMT)
committerGitHub <noreply@github.com>2021-05-19 20:37:32 (GMT)
commit65dede60fa15703b4625240fbe11af0060f5cbb0 (patch)
treee024580b4884546986fe924ba70ae617d555d05b /Doc/library
parent46f96f00f794edff8287b9092a10b5da2310d8f3 (diff)
downloadcpython-65dede60fa15703b4625240fbe11af0060f5cbb0.zip
cpython-65dede60fa15703b4625240fbe11af0060f5cbb0.tar.gz
cpython-65dede60fa15703b4625240fbe11af0060f5cbb0.tar.bz2
bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870) (GH-26254)
(cherry picked from commit c054e8f78f53035e06d6dc58c423d76c8a5fa39a) Co-authored-by: naglis <naglis@users.noreply.github.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/contextlib.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index b92f703..dd903ce 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -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.