(msg: str | Iterable[Mapping])
| 60 | @staticmethod |
| 61 | @override |
| 62 | def _construct(msg: str | Iterable[Mapping]): |
| 63 | if isinstance(msg, str): |
| 64 | yield FakeMessageSegment.text(msg) |
| 65 | else: |
| 66 | for seg in msg: |
| 67 | yield FakeMessageSegment(**seg) |
| 68 | return |
| 69 | |
| 70 | @override |
| 71 | def __add__(self, other: str | FakeMessageSegment | Iterable[FakeMessageSegment]): |
nothing calls this directly
no test coverage detected