def __sub__(self, other):
        if isinstance(other, int) and other == 0:
            return self
        self.check_compatibility(other)
        kwargs = self.get_kwargs()
        kwargs['value'] = self.get_value() - other.get_value()
        return self.__class__(**kwargs)
dataset/ETHPy150Open chromaway/ngcccbase/coloredcoinlib/colorvalue.py/AdditiveColorValue.__sub__/original