diff options
| author | 2023-12-17 23:36:12 +0800 | |
|---|---|---|
| committer | 2023-12-17 23:36:12 +0800 | |
| commit | 8df31b57b851887cb77d29e9d89cd016f9fff8a5 (patch) | |
| tree | f0aa89de4f2c9339e929c6c36b5917b77cdb5c11 | |
| parent | b05bcb4a6b1154f4a8f3a638dca9cfee6b7bbdd8 (diff) | |
| download | infini-8df31b57b851887cb77d29e9d89cd016f9fff8a5.tar.gz infini-8df31b57b851887cb77d29e9d89cd016f9fff8a5.zip | |
:sparkles: 新增抽象声明
| -rw-r--r-- | src/infini/event.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
