MCPcopy
hub / github.com/nonebot/nonebot2 / __add__

Method __add__

tests/utils.py:71–73  ·  view source on GitHub ↗
(self, other: str | FakeMessageSegment | Iterable[FakeMessageSegment])

Source from the content-addressed store, hash-verified

69
70 @override
71 def __add__(self, other: str | FakeMessageSegment | Iterable[FakeMessageSegment]):
72 other = escape_text(other) if isinstance(other, str) else other
73 return super().__add__(other)
74
75
76def make_fake_event(

Callers

nothing calls this directly

Calls 1

escape_textFunction · 0.85

Tested by

no test coverage detected