Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5336e2

Browse files
loop.remove_signal_handler returns a bool (#5253)
1 parent 4591604 commit e5336e2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

stdlib/asyncio/base_events.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class BaseEventLoop(AbstractEventLoop, metaclass=ABCMeta):
357357
def sock_accept(self, sock: socket) -> Future[Tuple[socket, _RetAddress]]: ...
358358
# Signal handling.
359359
def add_signal_handler(self, sig: int, callback: Callable[..., Any], *args: Any) -> None: ...
360-
def remove_signal_handler(self, sig: int) -> None: ...
360+
def remove_signal_handler(self, sig: int) -> bool: ...
361361
# Error handlers.
362362
def set_exception_handler(self, handler: Optional[_ExceptionHandler]) -> None: ...
363363
def get_exception_handler(self) -> Optional[_ExceptionHandler]: ...

stdlib/asyncio/events.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ class AbstractEventLoop(metaclass=ABCMeta):
447447
@abstractmethod
448448
def add_signal_handler(self, sig: int, callback: Callable[..., Any], *args: Any) -> None: ...
449449
@abstractmethod
450-
def remove_signal_handler(self, sig: int) -> None: ...
450+
def remove_signal_handler(self, sig: int) -> bool: ...
451451
# Error handlers.
452452
@abstractmethod
453453
def set_exception_handler(self, handler: Optional[_ExceptionHandler]) -> None: ...

0 commit comments

Comments
 (0)