Skip to content

Commit 5d366f2

Browse files
[3.11] pythongh-107980: fix doc role for asyncio.timeouts (pythonGH-108126) (python#108153)
pythongh-107980: fix doc role for asyncio.timeouts (pythonGH-108126) (cherry picked from commit a47c13c) Co-authored-by: Tin Tvrtković <[email protected]>
1 parent cdb5e9f commit 5d366f2

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
@@ -578,9 +578,9 @@ Shielding From Cancellation
578578
Timeouts
579579
========
580580

581-
.. coroutinefunction:: timeout(delay)
581+
.. function:: timeout(delay)
582582

583-
An :ref:`asynchronous context manager <async-context-managers>`
583+
Return an :ref:`asynchronous context manager <async-context-managers>`
584584
that can be used to limit the amount of time spent waiting on
585585
something.
586586

@@ -671,7 +671,7 @@ Timeouts
671671

672672
.. versionadded:: 3.11
673673

674-
.. coroutinefunction:: timeout_at(when)
674+
.. function:: timeout_at(when)
675675

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

0 commit comments

Comments
 (0)