def decorate(overload_func): template = make_overload_attribute_template( typ, attr, overload_func, inline=kwargs.get("inline", "never"), ) infer_getattr(template) overload(overload_func, **kwargs)(overload_func) return overload_func
def decorate(overload_func): template = make_overload_attribute_template(typ, '__call__', overload_func, inline=kwargs.get( 'inline', 'never'), base=_OverloadCallTemplate) numba.extending.infer_getattr(template) numba.extending.overload(overload_func, **kwargs)(overload_func) return overload_func