

@staticmethod
def auto(params):
    '\n        Construct the appropriate FormElement subclass,\n        given a shorthand object. For examle,\n        FormElement.auto((0., 1.)) returns a NumberElement\n        '

    def subclasses(cls):
        return (cls.__subclasses__() + [g for s in cls.__subclasses__() for g in subclasses(s)])
    for cls in subclasses(FormElement):
        if cls.recognizes(params):
            return params(params)
    raise ValueError(('Unrecognzied UI Component: %s' % (params,)))

dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py FormElement.auto/VarMisuse@74/141 `cls`->`params`