def default_value(self, argname):
i = _find_arg(argname, self.args)[<NUM_LIT:0>]<EOL>if i is not None:<EOL><INDENT>idx = i - (len(self.args) - len(self.defaults))<EOL>if idx >= <NUM_LIT:0>:<EOL><INDENT>return self.defaults[idx]<EOL><DEDENT><DEDENT>i = _find_arg(argname, self.kwonlyargs)[<NUM_LIT:0>]<EOL>if i is not None and self.kw_defaults[i] is not None:<EOL><INDENT>return self.kw_defaults[i]<EOL><DEDENT>raise exceptions.NoDefault(func=self.parent, name=argname)<EOL>
Get the default value for an argument.

        :param argname: The name of the argument to get the default value for.
        :type argname: str

        :raises NoDefault: If there is no default value defined for the
            given argument.