

@staticmethod
def Add(expr, assumptions):
    '\n        Rational + Rational     -> Rational\n        Rational + !Rational    -> !Rational\n        !Rational + !Rational   -> ?\n        '
    if expr.is_number:
        if expr.as_real_imag()[1]:
            return False
    return test_closed_group(expr, assumptions, Q.rational)

dataset/ETHPy150Open sympy/sympy/sympy/assumptions/handlers/sets.py AskRationalHandler.Add/original