aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/infini/event.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/infini/event.py b/src/infini/event.py
index 649103c9..9c6bd41b 100644
--- a/src/infini/event.py
+++ b/src/infini/event.py
@@ -34,9 +34,12 @@ class MessageEvent(InfiniEvent):
self.name = name
self.kwargs = kwargs
- def __repr__(self) -> str:
+ def __str__(self) -> str:
return f"<MessageEvent [{self.name}]>"
+ def __repr__(self) -> str:
+ return self.__str__()
+
class WorkflowEvent(InfiniEvent):
"""Workflow 事件"""