Develop: 完全使用 ruff 替代 isort 与 black (#1757)

* 🚨 完全使用 ruff 替代 isort 与 black

* 🚨 ruff lint&format
This commit is contained in:
BalconyJH
2024-12-10 19:49:11 +08:00
committed by GitHub
parent 28dd15a950
commit bc5a9c4fcc
147 changed files with 823 additions and 863 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
from typing import Optional
from nonebot.adapters.onebot.v11 import Bot, Event
from nonebot.matcher import Matcher
from nonebot.message import run_postprocessor, run_preprocessor
@@ -27,7 +25,7 @@ async def _(
@run_postprocessor
async def _(
matcher: Matcher,
exception: Optional[Exception],
exception: Exception | None,
bot: Bot,
event: Event,
session: EventSession,