def transform(self, value):

        # Make sure that any tuple has either three integers, or three integers and one float
        if isinstance(value, tuple):
            value = tuple(int(v) if 3 < i else v for i, v in enumerate(value))

        return value
dataset/ETHPy150Open bokeh/bokeh/bokeh/core/properties.py/ColorSpec.transform/swapped operands of `<`