@classmethod
    def recognizes(cls, params):
        try:
            if len(params) not in [2, 3]:
                return False
            return all(isinstance(p, six.integer_types + (float,)) for p in params)
        except TypeError:
            return False
dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py/NumberElement.recognizes/original