Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ci:
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 6.0.1
hooks:
- id: isort
stages: [pre-commit]
Expand All @@ -19,7 +19,7 @@ repos:
stages: [pre-commit]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
rev: v0.9.9
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
6 changes: 5 additions & 1 deletion src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,11 @@ async def send_to(self, target: Union[Target, Event], bot: Bot, message: Message
message = message.exclude("mention_channel", "mention_user", "mention_everyone", "reference")
if target.private:
res = await bot.send_to_c2c(
openid=target.id, message=message, msg_id=target.source, msg_seq=target.extra.get("qq.reply_seq"), **kwargs
openid=target.id,
message=message,
msg_id=target.source,
msg_seq=target.extra.get("qq.reply_seq"),
**kwargs,
)
elif target.extra.get("qq.interaction", False):
return await bot.send_to_group(group_openid=target.id, message=message, event_id=target.source, **kwargs)
Expand Down
4 changes: 3 additions & 1 deletion tests/test_buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ async def _(row: int):
)

async with app.test_matcher(matcher) as ctx:
from nonebot.adapters.qq.models import Action
from nonebot.adapters.qq.models import (
Action,
)
from nonebot.adapters.qq.models import Button as QQButton
from nonebot.adapters.qq import Bot, Adapter, Message, MessageSegment
from nonebot.adapters.qq.models import (
Expand Down
4 changes: 3 additions & 1 deletion tests/test_qq.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
from nonebug import App
from arclet.alconna import Args, Alconna
from nonebot import on_message, get_adapter
from nonebot.adapters.qq.models import Action
from nonebot.adapters.qq.models import (
Action,
)
from nonebot.adapters.qq.models import Button as QQButton
from nonebot.adapters.qq import Bot, Adapter, Message, MessageSegment
from nonebot.adapters.qq.models import (
Expand Down