guest_worker/sorteerhoed/Signal.py
2019-10-23 22:33:37 +02:00

13 lines
No EOL
335 B
Python

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"<Signal {self.name}: {self.params}>"