]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107980: fix doc role for asyncio.timeouts (#108126)
authorTin Tvrtković <tinchester@gmail.com>
Sat, 19 Aug 2023 20:14:38 +0000 (22:14 +0200)
committerGitHub <noreply@github.com>
Sat, 19 Aug 2023 20:14:38 +0000 (13:14 -0700)
Doc/library/asyncio-task.rst

index 0651ff7213e5275e2f0214f9b88c6cfe96a2e5c7..1c419728c9a482e58a87978807670eba03aac92b 100644 (file)
@@ -631,9 +631,9 @@ Shielding From Cancellation
 Timeouts
 ========
 
-.. coroutinefunction:: timeout(delay)
+.. function:: timeout(delay)
 
-    An :ref:`asynchronous context manager <async-context-managers>`
+    Return an :ref:`asynchronous context manager <async-context-managers>`
     that can be used to limit the amount of time spent waiting on
     something.
 
@@ -724,7 +724,7 @@ Timeouts
 
     .. versionadded:: 3.11
 
-.. coroutinefunction:: timeout_at(when)
+.. function:: timeout_at(when)
 
    Similar to :func:`asyncio.timeout`, except *when* is the absolute time
    to stop waiting, or ``None``.