def is_number(value):

    if value is None:
        return

    if not isinstance(value, (int, float)):
        return c('number')
Ensure the given value is a number.
dataset/ETHPy150Open heiskr/sagefy/server/modules/validations.py/is_number