From 56516eef4da699f95b42305e33a70501b80e9de4 Mon Sep 17 00:00:00 2001 From: Tin Tvrtkovic Date: Sat, 19 Aug 2023 02:11:07 +0200 Subject: [PATCH 1/2] gh-107980: fix doc role for asyncio.timeouts --- Doc/library/asyncio-task.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 0651ff7213e527..495f3f4650d1d8 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -631,7 +631,7 @@ Shielding From Cancellation Timeouts ======== -.. coroutinefunction:: timeout(delay) +.. function:: timeout(delay) An :ref:`asynchronous context manager ` that can be used to limit the amount of time spent waiting on @@ -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``. From a9e3e66337f96afcc43c96930a3e088ccf065d11 Mon Sep 17 00:00:00 2001 From: Tin Tvrtkovic Date: Sat, 19 Aug 2023 18:41:21 +0200 Subject: [PATCH 2/2] Tweak doc --- Doc/library/asyncio-task.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 495f3f4650d1d8..1c419728c9a482 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -633,7 +633,7 @@ Timeouts .. function:: timeout(delay) - An :ref:`asynchronous context manager ` + Return an :ref:`asynchronous context manager ` that can be used to limit the amount of time spent waiting on something.