Skip to content

Commit a47c13c

Browse files
authored
gh-107980: fix doc role for asyncio.timeouts (#108126)
1 parent c31c61c commit a47c13c

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
@@ -631,9 +631,9 @@ Shielding From Cancellation
631631
Timeouts
632632
========
633633

634-
.. coroutinefunction:: timeout(delay)
634+
.. function:: timeout(delay)
635635

636-
An :ref:`asynchronous context manager <async-context-managers>`
636+
Return an :ref:`asynchronous context manager <async-context-managers>`
637637
that can be used to limit the amount of time spent waiting on
638638
something.
639639

@@ -724,7 +724,7 @@ Timeouts
724724

725725
.. versionadded:: 3.11
726726

727-
.. coroutinefunction:: timeout_at(when)
727+
.. function:: timeout_at(when)
728728

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

0 commit comments

Comments
 (0)