def as_int_or_float_if_possible(input_value):
    value = input_value
    try:
        value = int(input_value)
    except (ValueError, TypeError):
        try:
            value = float(input_value)
        except (ValueError, __HOLE__):
            pass
    return(value)
dataset/ETHPy150Open Impactstory/total-impact-webapp/util.py/as_int_or_float_if_possible