def __repr__(self):
if self.is_named:<EOL><INDENT>result = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>result = '<STR_LIT>'<EOL><DEDENT>if isinstance(self.value, str):<EOL><INDENT>value = '<STR_LIT>' % (self.value.replace('<STR_LIT:">', '<STR_LIT>'))<EOL><DEDENT>else:<EOL><INDENT>value = self.value<EOL><DEDENT>return result % {<EOL>'<STR_LIT>': self.arg,<EOL>'<STR_LIT:type>': self.type,<EOL>'<STR_LIT:value>': value,<EOL>}<EOL>
String representation of an ``Arg`` instance.

        Returns
        -------
        str
            The string representation of the current ``Arg`` instance.

        Example
        -------

        >>> Arg('foo', '=', 1)
        foo=1
        >>> Arg(None, None, 2)
        2