I have this method that I want to pass into another function.
def get_service_enums(context, enum):
svc = Service(context)
return svc.get_enum(enum)
I want to pass this function is as a parameter to another class.
ColumnDef(enum_values=my_func)
Ideally, my_func is get_service_enums. However get_service_enums has a second parameter, enum that I want to pass in at same time I pass in get_service_enums. How can I do this without actually invoking get_service_enums with parenthesis?