libb.DelayedKeyboardInterrupt

class DelayedKeyboardInterrupt(propagate_to_forked_processes=None)[source]

Bases: object

Context manager that suppresses SIGINT & SIGTERM during a block.

Signal handlers are called on exit from the block.

Parameters:

propagate_to_forked_processes – Controls behavior in forked processes: - True: Same behavior as parent process - False: Use original signal handler - None: Ignore signals (default)