summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2024-01-20 16:49:48 (GMT)
committerGitHub <noreply@github.com>2024-01-20 16:49:48 (GMT)
commit0554a9594e07f46836a58795c9d9af2a97acec66 (patch)
treefbc1e3406303d936677bea6282db0b5d76678f91 /Lib
parent1d6d5e854c375821a64fa9c2fbb04a36fb3b9aaa (diff)
downloadcpython-0554a9594e07f46836a58795c9d9af2a97acec66.zip
cpython-0554a9594e07f46836a58795c9d9af2a97acec66.tar.gz
cpython-0554a9594e07f46836a58795c9d9af2a97acec66.tar.bz2
gh-114281: Remove incorrect type hints from `asyncio.staggered` (#114282)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/staggered.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/Lib/asyncio/staggered.py b/Lib/asyncio/staggered.py
index 451a53a..e180cde 100644
--- a/Lib/asyncio/staggered.py
+++ b/Lib/asyncio/staggered.py
@@ -3,7 +3,6 @@
__all__ = 'staggered_race',
import contextlib
-import typing
from . import events
from . import exceptions as exceptions_mod
@@ -11,16 +10,7 @@ from . import locks
from . import tasks
-async def staggered_race(
- coro_fns: typing.Iterable[typing.Callable[[], typing.Awaitable]],
- delay: typing.Optional[float],
- *,
- loop: events.AbstractEventLoop = None,
-) -> typing.Tuple[
- typing.Any,
- typing.Optional[int],
- typing.List[typing.Optional[Exception]]
-]:
+async def staggered_race(coro_fns, delay, *, loop=None):
"""Run coroutines with staggered start times and take the first to finish.
This method takes an iterable of coroutine functions. The first one is