From 71880e56e2ad2cf376e584efe91a2bfb73084264 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sat, 6 Jul 2024 09:29:26 +0800 Subject: style(core): format code && add noqa --- hrc/core.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'hrc/core.py') 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 -- cgit v1.2.3-70-g09d2