

def python_value(self, value):
    if (value is not None):
        if isinstance(value, decimal.Decimal):
            return self
        return decimal.Decimal(str(value))

dataset/ETHPy150Open coleifer/peewee/peewee.py DecimalField.python_value/VarMisuse@35/39 `value`->`self`