def _infer_call(self, func, expr):
        if expr.kws or expr.vararg:
            self._fail(expr)
        # Check supported callables
        if (func in (slice,) or
            (isinstance(func, type) and issubclass(func, BaseException))):
            args = [self.infer_constant(a.name) for a in expr.args]
            return func(*args)
        self._fail(expr)
dataset/ETHPy150Open numba/numba/numba/consts.py/ConstantInference._infer_call/original