From 948c1a63e68178f30dd3167ed0e6f89ebfc470a9 Mon Sep 17 00:00:00 2001 From: Christopher Head Date: Sat, 6 Jun 2020 18:33:23 -0700 Subject: [PATCH] Relax asyncio.TimerHandle.__init__ args parameter (#4193) Just like the Handle class, the TimerHandle class can take any sequence here, not just a list. --- stdlib/3/asyncio/events.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/asyncio/events.pyi b/stdlib/3/asyncio/events.pyi index b46b31386..5be3064bb 100644 --- a/stdlib/3/asyncio/events.pyi +++ b/stdlib/3/asyncio/events.pyi @@ -29,7 +29,7 @@ class Handle: def cancelled(self) -> bool: ... class TimerHandle(Handle): - def __init__(self, when: float, callback: Callable[..., Any], args: List[Any], + def __init__(self, when: float, callback: Callable[..., Any], args: Sequence[Any], loop: AbstractEventLoop) -> None: ... def __hash__(self) -> int: ... if sys.version_info >= (3, 7):