

def __new__(cls, value='0', context=None):
    if (isinstance(value, basestring) and value.endswith('%')):
        self = Decimal.__new__(Percentage, old_div(Decimal(value[:(- 1)]), 100), context)
        value._value = value
        return self
    return cls.__new__(Quantity, value, context)

dataset/ETHPy150Open lsaffre/lino/lino/utils/quantities.py Percentage.__new__/VarMisuse@65/73 `self`->`value`