def overload_attribute(typ, attr):
 from .typing.templates import make_overload_attribute_template
 def decorate(overload_func):
  template = make_overload_attribute_template(typ, attr, overload_func)
  infer_getattr(template)
  return overload_func
 return decorate

def overload_attribute ( typ , attr ) : from . typing . templates import make_overload_attribute_template def decorate ( overload_func ) : template = make_overload_attribute_template ( typ , attr , overload_func ) infer_getattr ( template ) return overload_func return decorate
a decorator marking the decorated function as typing and implementing attribute *attr* for the given numba type in nopython mode .