mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 02:50:48 +00:00
🚨 Develop: 完全使用 ruff 替代 isort 与 black (#3151)
This commit is contained in:
@ -10,46 +10,46 @@ FrontMatter:
|
||||
"""
|
||||
|
||||
import contextlib
|
||||
from datetime import datetime
|
||||
from contextlib import AsyncExitStack
|
||||
from datetime import datetime
|
||||
from typing import TYPE_CHECKING, Any, Callable, Optional
|
||||
|
||||
import anyio
|
||||
from exceptiongroup import BaseExceptionGroup, catch
|
||||
|
||||
from nonebot.log import logger
|
||||
from nonebot.rule import TrieRule
|
||||
from nonebot.dependencies import Dependent
|
||||
from nonebot.matcher import Matcher, matchers
|
||||
from nonebot.exception import (
|
||||
NoLogException,
|
||||
StopPropagation,
|
||||
IgnoredException,
|
||||
NoLogException,
|
||||
SkippedException,
|
||||
)
|
||||
from nonebot.utils import (
|
||||
escape_tag,
|
||||
run_coro_with_catch,
|
||||
run_coro_with_shield,
|
||||
flatten_exception_group,
|
||||
)
|
||||
from nonebot.typing import (
|
||||
T_State,
|
||||
T_DependencyCache,
|
||||
T_RunPreProcessor,
|
||||
T_RunPostProcessor,
|
||||
T_EventPreProcessor,
|
||||
T_EventPostProcessor,
|
||||
StopPropagation,
|
||||
)
|
||||
from nonebot.internal.params import (
|
||||
ArgParam,
|
||||
BotParam,
|
||||
EventParam,
|
||||
StateParam,
|
||||
DependParam,
|
||||
DefaultParam,
|
||||
MatcherParam,
|
||||
DependParam,
|
||||
EventParam,
|
||||
ExceptionParam,
|
||||
MatcherParam,
|
||||
StateParam,
|
||||
)
|
||||
from nonebot.log import logger
|
||||
from nonebot.matcher import Matcher, matchers
|
||||
from nonebot.rule import TrieRule
|
||||
from nonebot.typing import (
|
||||
T_DependencyCache,
|
||||
T_EventPostProcessor,
|
||||
T_EventPreProcessor,
|
||||
T_RunPostProcessor,
|
||||
T_RunPreProcessor,
|
||||
T_State,
|
||||
)
|
||||
from nonebot.utils import (
|
||||
escape_tag,
|
||||
flatten_exception_group,
|
||||
run_coro_with_catch,
|
||||
run_coro_with_shield,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
Reference in New Issue
Block a user