def block(self, signal=None, isBlocked=True):
        """Sets the block on provided signals, or to all signals"""

        if signal is None:
            for signal in self._signal_registry.keys():
                self._signal_registry[signal].block(isBlocked)
        else:
            self._check_signal_is_registered(signal)

            self._signal_registry[signal].block(isBlocked)
Sets the block on provided signals, or to all signals
recipes/Python/580764_Simple_signal_library_similar_PyQT/recipe-580764.py