def type_(type_):
    """Returns a string repr of the 'real type_'."""
    try:
        type_ = float(type_)
        if type_.is_integer():
            return int
        if not type_.is_integer():
            return float
    except ValueError:
        return str
