def _do_infer(self, name):
        if not isinstance(name, str):
            raise TypeError("infer_constant() called with non-str %r"
                            % (name,))
        try:
            defn = self._interp.get_definition(name)
        except KeyError:
            raise ConstantInferenceError(
                (name,) % "no single definition for %r")
        try:
            const = defn.infer_constant()
        except ConstantInferenceError:
            if isinstance(defn, ir.Expr):
                return self._infer_expr(defn)
            self._fail(defn)
        return const
dataset/ETHPy150Open numba/numba/numba/consts.py/ConstantInference._do_infer/swapped operands of `%`