diff options
| author | 2024-06-28 16:02:51 +0800 | |
|---|---|---|
| committer | 2024-06-28 16:02:51 +0800 | |
| commit | a53bc2df778248a81d7d2f25bbe03223912efcdc (patch) | |
| tree | 72d41eafb1872b8272b36ef319ef4beb0b4555e8 | |
| parent | 2827c09958aa6778e4499d34f5949d6f5677f2c6 (diff) | |
| download | HydroRollCore-a53bc2df778248a81d7d2f25bbe03223912efcdc.tar.gz HydroRollCore-a53bc2df778248a81d7d2f25bbe03223912efcdc.zip | |
fix: repair incorrect module import path
| -rw-r--r-- | hrc/__init__.py | 13 | ||||
| -rw-r--r-- | hrc/rule/BaseRule/__init__.py | 3 | ||||
| -rw-r--r-- | hrc/rule/__init__.py | 10 | ||||
| -rw-r--r-- | tests/test_BaseRule.py | 3 |
4 files changed, 19 insertions, 10 deletions
diff --git a/hrc/__init__.py b/hrc/__init__.py index b8a3bde..4258192 100644 --- a/hrc/__init__.py +++ b/hrc/__init__.py @@ -1,4 +1,13 @@ from .LibCore import * -from . import rules -# from . import
\ No newline at end of file +from . import rule +from . import core +from . import log +from . import exceptions +from . import config +from . import dependencies +from . import event +from . import performance +from . import feature +from . import document +from . import development
\ No newline at end of file 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 diff --git a/tests/test_BaseRule.py b/tests/test_BaseRule.py index 3d70a80..353e7a2 100644 --- a/tests/test_BaseRule.py +++ b/tests/test_BaseRule.py @@ -48,3 +48,6 @@ __rule_book__ = "BASIC ROLEPLAYING" # - 自定义判定列表 # ============================================== + +from hrc.rule import BaseRule + |
