From 8df31b57b851887cb77d29e9d89cd016f9fff8a5 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Sun, 17 Dec 2023 23:36:12 +0800 Subject: :sparkles: 新增抽象声明 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/infini/event.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/infini/event.py b/src/infini/event.py index 555dec57..649103c9 100644 --- a/src/infini/event.py +++ b/src/infini/event.py @@ -1,4 +1,4 @@ -from abc import ABCMeta +from abc import ABCMeta, abstractmethod from .typing import Dict, Any __all__ = [ @@ -15,6 +15,7 @@ class InfiniEvent(metaclass=ABCMeta): name: str kwargs: Dict[str, Any] + @abstractmethod def __repr__(self) -> str: raise NotImplementedError -- cgit v1.2.3-70-g09d2