def __new__(cls, processors):

        if isinstance(processors, (tuple, list)):
            if len(processors) > 1:
                inst = super().__new__(cls)
                inst.processors = tuple(cls._to_callable(processor)
                                        for processor in processors)
                return inst
            else:
                return cls._to_callable(processors[0])
        else:
            return cls._to_callable(processors)
dataset/ETHPy150Open LabPy/lantz/lantz/processors.py/Processor.__new__/original