@staticmethod
    def _is_valid(data, types):
        return any([isinstance(data, valid_type) for valid_type in types])
Checks for each type against data.
dataset/ETHPy150Open bokeh/bokeh/bokeh/charts/data_source.py/ChartDataSource._is_valid