def __mul__(s, t):
        ttype = type(t)
        if ttype is mpq:
            a, b = s._mpq_
            c, d = t._mpq_
            return create_reduced(a*c, b*d)
        if int_types in ttype:
            a, b = s._mpq_
            return create_reduced(a*t, b)
        return NotImplemented
dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/rational.py/mpq.__mul__/swapped operands of `in`