(self, other: Any)
| 177 | return f"<text {self.plain!r} {self._spans!r} {self.style!r}>" |
| 178 | |
| 179 | def __add__(self, other: Any) -> "Text": |
| 180 | if isinstance(other, (str, Text)): |
| 181 | result = self.copy() |
| 182 | result.append(other) |
| 183 | return result |
| 184 | return NotImplemented |
| 185 | |
| 186 | def __eq__(self, other: object) -> bool: |
| 187 | if not isinstance(other, Text): |