diff options
Diffstat (limited to 'hrc')
| -rw-r--r-- | hrc/__init__.py | 2 | ||||
| -rw-r--r-- | hrc/core.py | 3 | ||||
| -rw-r--r-- | hrc/rule/__init__.py | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/hrc/__init__.py b/hrc/__init__.py index 29021d3..ba4efed 100644 --- a/hrc/__init__.py +++ b/hrc/__init__.py @@ -1,7 +1,7 @@ from .LibCore import * # noqa: F403 from . import rule # noqa: F401 -from .core import Core # noqa: F401 +from . import core # noqa: F401 from . import log # noqa: F401 from . import exceptions # noqa: F401 from . import config # noqa: F401 diff --git a/hrc/core.py b/hrc/core.py index 94b9205..b346654 100644 --- a/hrc/core.py +++ b/hrc/core.py @@ -514,8 +514,7 @@ class Core: for _rule in self.rules: if _rule.__name__ == rule_class.__name__: logger.warning( - f'Already have a same name rule pack "{ - _rule.__name__}"' + f'Already have a same name rule pack "{_rule.__name__}"' ) rule_class.__rule_load_type__ = rule_load_type rule_class.__rule_file_path__ = rule_file_path diff --git a/hrc/rule/__init__.py b/hrc/rule/__init__.py index bbd2cfe..66ad686 100644 --- a/hrc/rule/__init__.py +++ b/hrc/rule/__init__.py @@ -22,7 +22,7 @@ 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 |
