

def set_default(self, default=None):
    '\n        Sets the default value.\n\n        :param default: The default value\n        :type default: mixed\n        '
    if (self.is_required() and (default is not None)):
        raise Exception('Cannot set a default value except for InputArgument::OPTIONAL mode.')
    if self.is_list():
        if (default is None):
            default = []
        elif (not isinstance(self, list)):
            raise Exception('A default value for an array argument must be an array.')
    self.__default = default

dataset/ETHPy150Open sdispater/cleo/cleo/inputs/input_argument.py InputArgument.set_default/VarMisuse@70/138 `default`->`self`