diff options
| author | 2024-06-28 18:18:02 +0800 | |
|---|---|---|
| committer | 2024-06-28 18:18:02 +0800 | |
| commit | 1b0d67664557e6f0b4a421e1183cee1b0dbca2d3 (patch) | |
| tree | 931dfb62595eae5b8e0ca5ca75deb4c15fab8532 | |
| parent | e0dcec790fc1a8a1bb05f4be977046262bd4d653 (diff) | |
| download | HydroRollCore-1b0d67664557e6f0b4a421e1183cee1b0dbca2d3.tar.gz HydroRollCore-1b0d67664557e6f0b4a421e1183cee1b0dbca2d3.zip | |
fix(core): import missed module in core.py
| -rw-r--r-- | hrc/core.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/hrc/core.py b/hrc/core.py index 862b8d1..8e69c21 100644 --- a/hrc/core.py +++ b/hrc/core.py @@ -28,7 +28,9 @@ from pydantic import ValidationError, create_model from .config import ConfigModel, MainConfig, RuleConfig from .dependencies import solve_dependencies from .log import logger -from .rules import Rule +from .rule import Rule, RuleLoadType +from .event import Event +from .typing import CoreHook, EventHook, EventT from .utils import ( ModulePathFinder, get_classes_from_module_name, @@ -36,6 +38,13 @@ from .utils import ( samefile, wrap_get_func, ) +from .exceptions import ( + StopException, + SkipException, + GetEventTimeout, + LoadModuleError +) + if sys.version_info >= (3, 11): # pragma: no cover import tomllib @@ -162,7 +171,7 @@ class Core: self, file: Path ) -> List[Type[Rule[Any, Any, Any]]]: # pragma: no cover removed_rules: List[Type[Rule[Any, Any, Any]]] = [] - for plugins in self.plugins_priority_dict.values(): + for rules in self.plugins_priority_dict.values(): _removed_rules = list( filter( lambda x: x.__rule_load_type__ != RuleLoadType.CLASS |
