diff --git a/stdlib/3.4/asyncio/events.pyi b/stdlib/3.4/asyncio/events.pyi index 262758fbd..a7d9c4d28 100644 --- a/stdlib/3.4/asyncio/events.pyi +++ b/stdlib/3.4/asyncio/events.pyi @@ -16,7 +16,7 @@ class Handle: __slots__ = ... # type: List[str] _cancelled = False _args = ... # type: List[Any] - def __init__(self, callback: Callable[[],Any], args: List[Any], + def __init__(self, callback: Callable[..., Any], args: List[Any], loop: AbstractEventLoop) -> None: ... def __repr__(self) -> str: ... def cancel(self) -> None: ... @@ -47,16 +47,16 @@ class AbstractEventLoop(metaclass=ABCMeta): def close(self) -> None: ... # Methods scheduling callbacks. All these return Handles. @abstractmethod - def call_soon(self, callback: Callable[[],Any], *args: Any) -> Handle: ... + def call_soon(self, callback: Callable[..., Any], *args: Any) -> Handle: ... @abstractmethod - def call_later(self, delay: Union[int, float], callback: Callable[[],Any], *args: Any) -> Handle: ... + def call_later(self, delay: Union[int, float], callback: Callable[..., Any], *args: Any) -> Handle: ... @abstractmethod - def call_at(self, when: float, callback: Callable[[],Any], *args: Any) -> Handle: ... + def call_at(self, when: float, callback: Callable[..., Any], *args: Any) -> Handle: ... @abstractmethod def time(self) -> float: ... # Methods for interacting with threads @abstractmethod - def call_soon_threadsafe(self, callback: Callable[[],Any], *args: Any) -> Handle: ... + def call_soon_threadsafe(self, callback: Callable[..., Any], *args: Any) -> Handle: ... @abstractmethod def run_in_executor(self, executor: Any, callback: Callable[[],Any], *args: Any) -> Future[Any]: ...