We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 906af24 commit a00fdebCopy full SHA for a00fdeb
src/textual/content.py
@@ -760,10 +760,10 @@ def __add__(self, other: Content | str) -> Content:
760
return content
761
return NotImplemented
762
763
- def __radd__(self, other: Content | str) -> Content:
764
- if not isinstance(other, (Content, str)):
+ def __radd__(self, other: str) -> Content:
+ if not isinstance(other, str):
765
766
- return self + other
+ return Content(other) + self
767
768
@classmethod
769
def _trim_spans(cls, text: str, spans: list[Span]) -> list[Span]:
0 commit comments