Add a check against all items passed in set_callbacks to ensure that they are all callable. raise an InvalidCallbackList exception if not, and don't modify the callbacks property
Add a test to ensure this behaviour
allow tuples to be passed to set_callbacks, as these are also a valid indexable structure.
Add a test to ensure that non-list|tuple variables passed to set_callbacks raises an InvalidCallbackList exception if not, and does not modify the callbacks property
set_callbacks
to ensure that they are all callable. raise anInvalidCallbackList
exception if not, and don't modify the callbacks propertyset_callbacks
, as these are also a valid indexable structure.set_callbacks
raises anInvalidCallbackList
exception if not, and does not modify the callbacks property