loop.remove_signal_handler returns a bool (#5253)

This commit is contained in:
Thomas Cellerier
2021-04-26 16:10:04 +02:00
committed by GitHub
parent 45916045c8
commit e5336e2358
2 changed files with 2 additions and 2 deletions

View File

@@ -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]: ...

View File

@@ -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: ...