@classmethod
    def isconst(cls, arg):
        """ Returns True if the argument is a literal color.  Check for a
        well-formed hexadecimal color value.
        """
        return isinstance(arg, string_types) and \
               ((len(arg) == 7 and arg[0] == "#") or enums.NamedColor in arg)
dataset/ETHPy150Open bokeh/bokeh/bokeh/core/properties.py/ColorSpec.isconst/swapped operands of `in`