class Signal: """ An event, with possible parameters. Named 'signal' to avoid confusion with threading.Event """ def __init__(self, name: str, params: dict = None): self.name = name self.params = params def __repr__(self): return f""