Skip to content

Commit dade620

Browse files
🚨 auto fix by pre-commit hooks
1 parent a8b15c3 commit dade620

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/nonebot_plugin_alconna/matcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class AlconnaMatcherMeta(MatcherMeta):
114114
def __repr__(self) -> str:
115115
return (
116116
f"{self.__class__.__name__}(type={self.type!r}"
117-
+ f", command={escape_tag(self._command_path)}"
117+
f", command={escape_tag(self._command_path)}"
118118
+ (f", module={self.module_name}" if self.module_name else "")
119119
+ (f", lineno={self._source.lineno}" if self._source and self._source.lineno is not None else "")
120120
+ ")"
@@ -142,7 +142,7 @@ def clean(cls) -> None:
142142
def __repr__(self) -> str:
143143
return (
144144
f"{self.__class__.__name__}(type={self.type!r}"
145-
+ f", command={escape_tag(self._command_path)}"
145+
f", command={escape_tag(self._command_path)}"
146146
+ (f", module={self.module_name}" if self.module_name else "")
147147
+ (f", lineno={self._source.lineno}" if self._source and self._source.lineno is not None else "")
148148
+ ")"

tests/test_buttons.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ async def _(row: int):
9595
)
9696

9797
async with app.test_matcher(matcher) as ctx:
98-
from nonebot.adapters.qq.models import Action
98+
from nonebot.adapters.qq.models import (
99+
Action,
100+
)
99101
from nonebot.adapters.qq.models import Button as QQButton
100102
from nonebot.adapters.qq import Bot, Adapter, Message, MessageSegment
101103
from nonebot.adapters.qq.models import (

tests/test_qq.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
from nonebug import App
33
from arclet.alconna import Args, Alconna
44
from nonebot import on_message, get_adapter
5-
from nonebot.adapters.qq.models import Action
5+
from nonebot.adapters.qq.models import (
6+
Action,
7+
)
68
from nonebot.adapters.qq.models import Button as QQButton
79
from nonebot.adapters.qq import Bot, Adapter, Message, MessageSegment
810
from nonebot.adapters.qq.models import (

0 commit comments

Comments
 (0)