def __mul__(self, other):
        if isRat(other):
            return Rat(self.__num*other.__num, self.__den*other.__den)
        if isint(other):
            return Rat(self.__num*other, self.__den)
        if isnum(other):
            return float(self)*other
        return NotImplemented
Multiply two Rats, or a Rat and a number.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_binop.py/Rat.__mul__