def __new__(cls, mat):
        mat = _sympify(mat)
        if not mat.is_Matrix:
            raise TypeError("mat should be a matrix")
        if not mat.is_square:
            raise ShapeError(mat % "Inverse of non-square matrix %s")
        return Basic.__new__(cls, mat)
dataset/ETHPy150Open sympy/sympy/sympy/matrices/expressions/inverse.py/Inverse.__new__/swapped operands of `%`