def get_constant(self, ty, val):
        """
        Same as get_constant_generic(), but without specifying *builder*.
        Works only for simple types.
        """
        # HACK: pass builder=None to preserve get_constant() API
        return self.get_constant_generic(None, ty, val)

        Same as get_constant_generic(), but without specifying *builder*.
        Works only for simple types.
        
numba/core/base.py