@staticmethod
    def form_signature(cls):
        argspec = inspect.getargspec(cls.__init__)
        arglist = argspec.args[1:]  # Drop self.
        non_default = len(arglist)
        if argspec.defaults is not None:
            non_default -= len(argspec.defaults)
        args = [[arg] for arg in arglist[:non_default]]
        if argspec.defaults is not None:
            defstrs = [repr(default) for default in argspec.defaults]
            args.extend([arg, default]
                        for arg, default in zip(arglist[non_default:], defstrs))
        return dict(args=args,
                    varargs=argspec.varargs or '',
                    kwargs=argspec.keywords or '')
Return constructor signature for class `cls`.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/factory.py/Factory.form_signature