def METHOD_NAME(self, py_type):
    result = self.try_infer(py_type)
    if result is None:
        raise errors.TypingError(
            f"Cannot infer numba type of python type {py_type}"
        )
    return result