def __init__(self, instance, pretty=False, expand=StringFormatType.error):
self.instance = instance<EOL>self.pretty = pretty<EOL>self.expand = expand<EOL>
Create a formatter.

        Args:
            instance: The object to format with.
            pretty: If True, references to non-string attributes such as lists
                are converted to basic form, with characters such as brackets
                and parentheses removed.
            expand: `StringFormatType`.