✨ Add subscribe and unsubscribe PySwitch methods
Add two new methods to the Python API related to the PySwitch object:
-
subscribe
: subscribe to either theon-quiddity-created
or theon-quiddity-removed
signals. -
unsubscribe
: unsubscribe from either one of the above signals.
Much like the PyQuiddity methods sharing the same name, a user_data
can also be provided when subscribing: this user_data
will be accessible from inside the specified callback function.