gh-107980: fix doc role for asyncio.timeouts (#108126)

This commit is contained in:
Tin Tvrtković 2023-08-19 22:14:38 +02:00 committed by GitHub
parent c31c61c04e
commit a47c13cae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -631,9 +631,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.
@ -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``.