[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 a47c13cae5)

Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-08-19 16:08:40 -07:00 committed by GitHub
parent 540c0d99ea
commit 0e5eee0130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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