From a53bc2df778248a81d7d2f25bbe03223912efcdc Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Jun 2024 16:02:51 +0800 Subject: fix: repair incorrect module import path --- hrc/rule/BaseRule/__init__.py | 3 +++ hrc/rule/__init__.py | 10 ++-------- 2 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 hrc/rule/BaseRule/__init__.py (limited to 'hrc/rule') diff --git a/hrc/rule/BaseRule/__init__.py b/hrc/rule/BaseRule/__init__.py new file mode 100644 index 0000000..fbb8df2 --- /dev/null +++ b/hrc/rule/BaseRule/__init__.py @@ -0,0 +1,3 @@ +from . import CharacterCard +from . import CustomRule +from . import Wiki \ No newline at end of file diff --git a/hrc/rule/__init__.py b/hrc/rule/__init__.py index 473d143..5382c27 100644 --- a/hrc/rule/__init__.py +++ b/hrc/rule/__init__.py @@ -4,13 +4,7 @@ from typing import Generic, Any, Type from abc import ABC from . import BaseRule -from ..typing import RulesT - - -"""iamai 插件。 - -所有 iamai 插件的基类。所有用户编写的插件必须继承自 `Plugin` 类。 -""" +from ..typing import RuleT import inspect from abc import ABC, abstractmethod @@ -30,7 +24,7 @@ from typing import ( from typing_extensions import Annotated, get_args, get_origin from ..config import ConfigModel -from ..dependencies import Depends +# from ..dependencies import Depends from ..event import Event from ..exceptions import SkipException, StopException from ..typing import ConfigT, EventT, StateT -- cgit v1.2.3-70-g09d2