aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-07-06 09:29:26 +0800
committer简律纯 <i@jyunko.cn>2024-07-06 09:29:26 +0800
commit71880e56e2ad2cf376e584efe91a2bfb73084264 (patch)
treeb16906d7801938a389db0afddbcd0e05c84920e3
parent9f7019a860d3ff10b0f2cf885d8b9df547a6fa5e (diff)
downloadHydroRollCore-71880e56e2ad2cf376e584efe91a2bfb73084264.tar.gz
HydroRollCore-71880e56e2ad2cf376e584efe91a2bfb73084264.zip
style(core): format code && add noqa
-rw-r--r--hrc/core.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/hrc/core.py b/hrc/core.py
index 87b22f0..3625379 100644
--- a/hrc/core.py
+++ b/hrc/core.py
@@ -4,23 +4,23 @@ import pkgutil
import signal
import sys
import threading
-import time
+import time # noqa: F401
from collections import defaultdict
from contextlib import AsyncExitStack
from itertools import chain
from pathlib import Path
from typing import (
Any,
- Awaitable,
- Callable,
+ Awaitable, # noqa: F401
+ Callable, # noqa: F401
Dict,
List,
Optional,
- Set,
+ Set, # noqa: F401
Tuple,
Type,
Union,
- overload,
+ overload, # noqa: F401
)
from pydantic import ValidationError, create_model
@@ -30,15 +30,15 @@ from .dependencies import solve_dependencies
from .log import logger
from .rule import Rule, RuleLoadType
from .event import Event
-from .typing import CoreHook, EventHook, EventT, RuleHook
+from .typing import CoreHook, EventHook, EventT, RuleHook # noqa: F401
from .utils import (
ModulePathFinder,
get_classes_from_module_name,
is_config_class,
samefile,
- wrap_get_func,
+ wrap_get_func, # noqa: F401
)
-from .exceptions import StopException, SkipException, GetEventTimeout, LoadModuleError
+from .exceptions import StopException, SkipException, GetEventTimeout, LoadModuleError # noqa: F401
if sys.version_info >= (3, 11): # pragma: no cover