Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/connectors/signal_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def teardown(self) -> None:
"""Restores the signals that were previsouly configured before :class:`SignalConnector` replaced them."""
for signum, handler in self._original_handlers.items():
if handler is not None:
signal.signal(signum, handler) # type: ignore[arg-type]
self._register_signal(signum, handler)
self._original_handlers = {}

@staticmethod
Expand Down