@contextmanager
def skip_signal(signal, **kwargs):
 signal.disconnect(**kwargs)
 (yield)
 signal.connect(**kwargs)

@ contextmanager def skip_signal ( signal , ** kwargs ) : signal . disconnect ( ** kwargs ) ( yield ) signal . connect ( ** kwargs )
contextmanager to skip a signal by disconnecting it .