(self, ty1, ty2)
return types.REAL
Returns the most generic, yet compatible type between ty1 and ty2
Returns the most generic, yet compatible type between ty1 and ty2
Returns the most generic yet compatible type between ty1 and ty2
def _most_generic(self, ty1, ty2):
        """Returns the most generic, yet compatible type between ty1 and ty2"""
        if ty1 == ty2:
            return ty1

        assert ty1 in [types.REAL, types.INT], str(ty1)
        assert ty2 in [types.REAL, types.INT], str(ty2)
        return types.REAL
def _most_generic ( self , ty1 , ty2 ) : if ty1 == ty2 : return ty1 assert ty1 in [ types . REAL , types . INT ] , str ( ty1 ) assert ty2 in [ types . REAL , types . INT ] , str ( ty2 ) return types . REAL