Skip to content

Commit 0e5eee0

Browse files
[3.12] gh-107980: fix doc role for asyncio.timeouts (GH-108126) (#108152)
gh-107980: fix doc role for asyncio.timeouts (GH-108126) (cherry picked from commit a47c13c) Co-authored-by: Tin Tvrtković <[email protected]>
1 parent 540c0d9 commit 0e5eee0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/asyncio-task.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,9 @@ Shielding From Cancellation
628628
Timeouts
629629
========
630630

631-
.. coroutinefunction:: timeout(delay)
631+
.. function:: timeout(delay)
632632

633-
An :ref:`asynchronous context manager <async-context-managers>`
633+
Return an :ref:`asynchronous context manager <async-context-managers>`
634634
that can be used to limit the amount of time spent waiting on
635635
something.
636636

@@ -721,7 +721,7 @@ Timeouts
721721

722722
.. versionadded:: 3.11
723723

724-
.. coroutinefunction:: timeout_at(when)
724+
.. function:: timeout_at(when)
725725

726726
Similar to :func:`asyncio.timeout`, except *when* is the absolute time
727727
to stop waiting, or ``None``.

0 commit comments

Comments
 (0)