decorators
This file contains decorators which can be used in other functions to ensure the input instance type is supported by the function.
- exception PreferenceIncompatibleError
Bases:
Exception
Exception raised if an instance with a different type of preferences than expected was encountered.
- requires_approval(fn)
Decorator to filter ordinal instances that are not approval.
- requires_preference_type(*dtype)
Decorator to filter instances with wrong preference type.