Skip to content

Commit 8e78f69

Browse files
committed
🔖 version 0.58.5
1 parent b93ea81 commit 8e78f69

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/nonebot_plugin_alconna/__init__.py

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

146-
__version__ = "0.58.4"
146+
__version__ = "0.58.5"
147147
__supported_adapters__ = set(m.value for m in SupportAdapterModule.__members__.values()) # noqa: C401
148148
__plugin_meta__ = PluginMetadata(
149149
name="Alconna 插件",

src/nonebot_plugin_alconna/pattern.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ def converter(self, _seg: Segment):
122122
)
123123

124124

125-
@deprecated("Use `select().first` instead.")
125+
@deprecated("`select_first` is deprecated and will be removed in version 0.59.0.\nUse `select().first` instead.")
126126
def select_first(
127127
seg: Union[type[segment.TS], BasePattern[segment.TS, Segment, Any]],
128128
) -> BasePattern[segment.TS, Segment, Literal[MatchMode.TYPE_CONVERT]]:
129129
return select(seg).first
130130

131131

132-
@deprecated("Use `select().last` instead.")
132+
@deprecated("`select_last` is deprecated and will be removed in version 0.59.0.\nUse `select().last` instead.")
133133
def select_last(
134134
seg: Union[type[segment.TS], BasePattern[segment.TS, Segment, Any]],
135135
) -> BasePattern[segment.TS, Segment, Literal[MatchMode.TYPE_CONVERT]]:

src/nonebot_plugin_alconna/uniseg/__init__.py

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

66-
__version__ = "0.58.4"
66+
__version__ = "0.58.5"
6767

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

src/nonebot_plugin_alconna/uniseg/adapters/gewechat/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from warnings import warn
2+
13
from nonebot_plugin_alconna.uniseg.loader import BaseLoader
24
from nonebot_plugin_alconna.uniseg.constraint import SupportAdapter
3-
from warnings import warn
45

56

67
class Loader(BaseLoader):

0 commit comments

Comments
 (0)