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.


Decorator to filter ordinal instances that are not approval.


Decorator to filter instances with wrong preference type.