mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-01 22:59:53 +00:00
🐛 修复导入警告,添加类型忽略注释
This commit is contained in:
@ -190,7 +190,7 @@ async def marsho(target: MsgTarget, event: Event, text: Optional[UniMsg] = None)
|
|||||||
|
|
||||||
|
|
||||||
with contextlib.suppress(ImportError): # 优化先不做()
|
with contextlib.suppress(ImportError): # 优化先不做()
|
||||||
import nonebot.adapters.onebot.v11
|
import nonebot.adapters.onebot.v11 # type: ignore
|
||||||
from .azure_onebot import poke_notify
|
from .azure_onebot import poke_notify
|
||||||
|
|
||||||
@poke_notify.handle()
|
@poke_notify.handle()
|
||||||
|
Reference in New Issue
Block a user