@staticmethod
def parse_number(value):
    """Parse and return number (string, float or int) as int or float"""
    value_float = float(value)
    if value_float.is_integer():
        return int(value_float)
    else:
        return value_float
