class SyncX: on_started: SyncSignalT = SyncSignal() on_stopped: SyncSignalT = SyncSignal() def __init__(self): self.on_started = self.on_started.with_default_sender(self) self.on_stopped = self.on_stopped.with_default_sender(self)
class X: sig = Signal() sig2 = SyncSignal()