def __init__(self, tags=None, always_reset=False, strict=False, tag_sep='<STR_LIT>', ansistring_cls=None):
self.user_tags = tags if tags else {}<EOL>self.always_reset = always_reset<EOL>self.strict = strict<EOL>self.tag_sep = tag_sep<EOL>self.ansistring_cls = ansistring_cls if ansistring_cls else AnsiMarkupString<EOL>self.re_tag = self.compile_tag_regex(tag_sep)<EOL>
Arguments
---------
tags: dict
   User-supplied tags, which are a mapping of tag names to the strings
   they will be substituted with.
always_reset: bool
   Whether or not ``parse()`` should always end strings with a reset code.
strict: bool
   Whether or not ``parse()`` should raise an error for missing closing tags.
tag_sep: str
   The opening and closing characters of each tag (e.g. ``<>``, ``{}``).
ansistring_cls: type
   Class to use in ``ansistring()`` method.