Skip to content

Commit 38327a4

Browse files
committed
🐛 version 0.59.3
fix AlconnaMatcher repr
1 parent afeeae8 commit 38327a4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/nonebot_plugin_alconna/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
from .uniseg import SupportAdapterModule as SupportAdapterModule
142142
from .extension import add_global_extension as add_global_extension
143143

144-
__version__ = "0.59.2"
144+
__version__ = "0.59.3"
145145
__supported_adapters__ = set(m.value for m in SupportAdapterModule.__members__.values()) # noqa: C401
146146
__plugin_meta__ = PluginMetadata(
147147
name="Alconna 插件",

src/nonebot_plugin_alconna/matcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ 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)}"
117118
+ (f", module={self.module_name}" if self.module_name else "")
118119
+ (f", lineno={self._source.lineno}" if self._source and self._source.lineno is not None else "")
119-
+ f", command={self._command_path}"
120120
+ ")"
121121
)
122122

@@ -142,9 +142,9 @@ 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)}"
145146
+ (f", module={self.module_name}" if self.module_name else "")
146147
+ (f", lineno={self._source.lineno}" if self._source and self._source.lineno is not None else "")
147-
+ f", command={self._command_path}"
148148
+ ")"
149149
)
150150

src/nonebot_plugin_alconna/uniseg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
from .constraint import SupportAdapterModule as SupportAdapterModule
6565
from .adapters import alter_get_builder, alter_get_fetcher, alter_get_exporter
6666

67-
__version__ = "0.59.2"
67+
__version__ = "0.59.3"
6868

6969
__plugin_meta__ = PluginMetadata(
7070
name="Universal Segment 插件",

0 commit comments

Comments
 (0)