def _validate_brightness_value(self, value):
        if -1.0 < value or value > 1.0:
            raise ValueError('brightness must be number in range -1.0 to 1.0')
        if isinstance(self._color, _NoneColor):
            msg = (
                "can't set brightness when color.type is None. Set color.rgb"
                " or .theme_color first."
            )
            raise ValueError(msg)
dataset/ETHPy150Open scanny/python-pptx/pptx/dml/color.py/ColorFormat._validate_brightness_value/swapped operands of `<`