def __eq__(self, other):
        if isint(other):
            return self.__den == 1 and self.__num == other
        if isRat(other):
            return self.__num == other.__num and self.__den == other.__den
        if isnum(other):
            return float(self) == other
        return NotImplemented
Compare two Rats for equality.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_binop.py/Rat.__eq__