[3.11] gh-107980: fix doc role for asyncio.timeouts (GH-108126) (#108153)

gh-107980: fix doc role for asyncio.timeouts (GH-108126)
(cherry picked from commit a47c13cae5)

Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-08-20 03:12:15 -07:00 committed by GitHub
parent cdb5e9f76f
commit 5d366f28ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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