]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-107980: fix doc role for asyncio.timeouts (GH-108126) (#108153)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 20 Aug 2023 10:12:15 +0000 (03:12 -0700)
committerGitHub <noreply@github.com>
Sun, 20 Aug 2023 10:12:15 +0000 (11:12 +0100)
gh-107980: fix doc role for asyncio.timeouts (GH-108126)
(cherry picked from commit a47c13cae5b32e6f3d7532cc6dbb4e1ac31219de)

Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
Doc/library/asyncio-task.rst

index ad5466b12b651e71c634aaa3b1f9e474d5e22f08..ef17f384c1bfebdebce349f451e5966a3d495489 100644 (file)
@@ -578,9 +578,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.
 
@@ -671,7 +671,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``.