def __add__(self, other):
if isinstance(other, str):<EOL><INDENT>return str(self) + other<EOL><DEDENT>elif isinstance(other, _PaletteEntry):<EOL><INDENT>newcodes = self._codes + other._codes<EOL>attr = _PaletteEntry(self.parent, self.name,<EOL>'<STR_LIT:;>'.join(newcodes))<EOL>same_category = self.parent is other.parent<EOL>if not same_category:  <EOL><INDENT>attr.default = ANSI_RESET<EOL><DEDENT>return attr<EOL><DEDENT>else:<EOL><INDENT>raise TypeError(f'<STR_LIT>')<EOL><DEDENT>
Add: self + other