[Python-checkins] bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870)

iritkatriel webhook-mailer at python.org
Wed May 19 16:36:13 EDT 2021


https://github.com/python/cpython/commit/c054e8f78f53035e06d6dc58c423d76c8a5fa39a
commit: c054e8f78f53035e06d6dc58c423d76c8a5fa39a
branch: main
author: naglis <naglis at users.noreply.github.com>
committer: iritkatriel <iritkatriel at yahoo.com>
date: 2021-05-19T21:36:05+01:00
summary:

bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870)

files:
M Doc/library/contextlib.rst

diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index b92f703509fca..dd903ce8ee916 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.
 



More information about the Python-checkins mailing list