

def __mul__(self, other):
    assert (self.type in ('color', 'number'))
    if isinstance(other, FilterCompiler):
        assert (other.type in ('color', 'number'))
        ops = (self.ops + other.ops)
    elif isinstance(other, (int, long, float)):
        ops = (self.ops + [op_number(other)])
    else:
        return NotImplemented
    return FilterCompiler('number', (ops + [op_(lib.SANPERA_OP_MULTIPLY)]))

dataset/ETHPy150Open eevee/sanpera/sanpera/filters.py FilterCompiler.__mul__/original