From e5336e235876985f43f6db95aa984ddcfe430e3e Mon Sep 17 00:00:00 2001 From: Thomas Cellerier Date: Mon, 26 Apr 2021 16:10:04 +0200 Subject: [PATCH] loop.remove_signal_handler returns a bool (#5253) --- stdlib/asyncio/base_events.pyi | 2 +- stdlib/asyncio/events.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/asyncio/base_events.pyi b/stdlib/asyncio/base_events.pyi index cdc98e691..6c563f24d 100644 --- a/stdlib/asyncio/base_events.pyi +++ b/stdlib/asyncio/base_events.pyi @@ -357,7 +357,7 @@ class BaseEventLoop(AbstractEventLoop, metaclass=ABCMeta): def sock_accept(self, sock: socket) -> Future[Tuple[socket, _RetAddress]]: ... # Signal handling. def add_signal_handler(self, sig: int, callback: Callable[..., Any], *args: Any) -> None: ... - def remove_signal_handler(self, sig: int) -> None: ... + def remove_signal_handler(self, sig: int) -> bool: ... # Error handlers. def set_exception_handler(self, handler: Optional[_ExceptionHandler]) -> None: ... def get_exception_handler(self) -> Optional[_ExceptionHandler]: ... diff --git a/stdlib/asyncio/events.pyi b/stdlib/asyncio/events.pyi index 521c69f32..6c9717f87 100644 --- a/stdlib/asyncio/events.pyi +++ b/stdlib/asyncio/events.pyi @@ -447,7 +447,7 @@ class AbstractEventLoop(metaclass=ABCMeta): @abstractmethod def add_signal_handler(self, sig: int, callback: Callable[..., Any], *args: Any) -> None: ... @abstractmethod - def remove_signal_handler(self, sig: int) -> None: ... + def remove_signal_handler(self, sig: int) -> bool: ... # Error handlers. @abstractmethod def set_exception_handler(self, handler: Optional[_ExceptionHandler]) -> None: ...