13 lines
No EOL
335 B
Python
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}>" |