def from_sympy(self, a):
        """Convert SymPy's Integer to ``dtype``. """
        if a.is_Integer:
            return GMPYInteger(a.p)
        elif a.is_Float and int(a) == a:
            return GMPYInteger(int(a))
        else:
            raise CoercionFailed(a % "expected an integer, got %s")
dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/gmpyintegerring.py/GMPYIntegerRing.from_sympy/swapped operands of `%`