code: def exception_to_signal(sig: Union[SignalException, signal.Signals]):
      
      if isinstance(sig, SignalException):
          signum = sig.signum
      else:
          signum = sig.value
      signal.signal(signum, signal.SIG_DFL)
docs: Rollback any changes done by :py:func:`signal_to_exception`.