From 593d8e4fd0f7ac7be96b1f4546ee660f2484463d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:03:00 +0000 Subject: [PATCH] :rotating_light: auto fix by pre-commit hooks --- src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py b/src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py index 4f60404..d408dd3 100644 --- a/src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py +++ b/src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py @@ -171,7 +171,7 @@ def get_target(self, event: Event, bot: Union[Bot, None] = None) -> Target: adapter=self.get_adapter(), self_id=bot.self_id if bot else None, scope=SupportScope.qq_api, - extra={"qq.interaction":True} + extra={"qq.interaction": True}, ) elif event.channel_id: return Target( @@ -389,7 +389,7 @@ async def send_to(self, target: Union[Target, Event], bot: Bot, message: Message openid=target.id, message=message, msg_id=target.source, msg_seq=target.extra["qq.reply_seq"], **kwargs ) else: - if target.extra.get("qq.interaction",False): + if target.extra.get("qq.interaction", False): res = await bot.send_to_group(group_openid=target.id, message=message, event_id=target.source, **kwargs) return res else: