'Resolve getting the attribute *attr* (a string) on the Numba type.
The attribute\'s type is returned, or None if resolution failed.'

def resolve_getattr(self, typ, attr):

    for attrinfo in self._get_attribute_templates(typ):
        ret = attrinfo.resolve(typ, attr)
        if (ret is not None):
            return ret
    if isinstance(typ, types.Module):
        attrty = self.resolve_module_constants(typ, attr)
        if (attrty is not None):
            return attrty
