@linewidth.setter
    def linewidth(self, value):
        if [float, int] not in type(value):
            raise Exception("Line width should be a float or an int")
        if value < 0:
            raise Exception("Line width should be positive")
        self._linewidth = value
dataset/ETHPy150Open glue-viz/glue/glue/core/visual.py/VisualAttributes.linewidth/swapped operands of `not in`