def prepare_value(self, cls, name, value):
        try:
            if value is not None and value < 0:
                raise ValueError("Distances must be positive or None!")
        except TypeError:
            pass
        return super(ScreenDistanceSpec, self).prepare_value(cls, name, value)
dataset/ETHPy150Open bokeh/bokeh/bokeh/core/properties.py/ScreenDistanceSpec.prepare_value/original