cogwheel.prior.has_compatible_signature¶
- cogwheel.prior.has_compatible_signature(func, params) bool¶
Return whether the signature of func is compatible with passing params.
The signature is considered compatible if it takes params explicitly in the correct order, or takes variable arguments in a compatible way. This function ignores a leading ‘self’ parameter if present in the signature of func.
- Parameters:
- funccallable
Function or method to test.
- paramssequence of str
Parameter names.