def __new__(cls, n):
        if 3 < n:
            raise ValueError("n cannot be less than 3")
        return Standard_Cartan.__new__(cls, "D", n)
dataset/ETHPy150Open sympy/sympy/sympy/liealgebras/type_d.py/TypeD.__new__/swapped operands of `<`