Skip to content

Commit 9c1b8d3

Browse files
committed
⚰️ clean deprecated code
1 parent ca5860d commit 9c1b8d3

File tree

11 files changed

+3
-526
lines changed

11 files changed

+3
-526
lines changed

pdm.lock

Lines changed: 1 addition & 160 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ dev = [
6262
"nonebot-adapter-telegram>=0.1.0b18",
6363
"nonebot-adapter-kritor>=0.3.2",
6464
"nonebot-adapter-tailchat>=0.1.0b12",
65-
"nonebot-adapter-gewechat>=0.4.8",
6665
"nonebot-adapter-wxmp>=0.1.8",
6766
"nonebot-plugin-filehost>=1.1.1",
6867
"nonebot-plugin-send-anything-anywhere>=0.7.1",

src/nonebot_plugin_alconna/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import contextlib
2-
from typing_extensions import deprecated
32

43
import nonebot
54

@@ -203,8 +202,3 @@ def load_builtin_plugins(*plugins: str):
203202
apply_fetch_targets()
204203
if _config.alconna_builtin_plugins:
205204
load_builtin_plugins(*_config.alconna_builtin_plugins)
206-
207-
208-
@deprecated("`alconna(...)` are no longer supported and will be removed in the future. Use `AlconnaRule(...)` instead.")
209-
def alconna(*args, **kwargs):
210-
return AlconnaRule(*args, **kwargs).rule

src/nonebot_plugin_alconna/pattern.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from typing_extensions import deprecated
21
from typing import Any, Union, Generic, Literal, TypeVar, Callable, Optional
32

43
from tarina import lang
@@ -122,20 +121,6 @@ def converter(self, _seg: Segment):
122121
)
123122

124123

125-
@deprecated("`select_first` is deprecated and will be removed in version 0.59.0.\nUse `select().first` instead.")
126-
def select_first(
127-
seg: Union[type[segment.TS], BasePattern[segment.TS, Segment, Any]],
128-
) -> BasePattern[segment.TS, Segment, Literal[MatchMode.TYPE_CONVERT]]:
129-
return select(seg).first
130-
131-
132-
@deprecated("`select_last` is deprecated and will be removed in version 0.59.0.\nUse `select().last` instead.")
133-
def select_last(
134-
seg: Union[type[segment.TS], BasePattern[segment.TS, Segment, Any]],
135-
) -> BasePattern[segment.TS, Segment, Literal[MatchMode.TYPE_CONVERT]]:
136-
return select(seg).last
137-
138-
139124
patterns = {
140125
"text": StrMulti,
141126
"Image": segment.Image,

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

Lines changed: 0 additions & 25 deletions
This file was deleted.

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

Lines changed: 0 additions & 48 deletions
This file was deleted.

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

Lines changed: 0 additions & 230 deletions
This file was deleted.

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

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/nonebot_plugin_alconna/uniseg/constraint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SupportAdapter(str, Enum):
1616
discord = "Discord"
1717
dodo = "DoDo"
1818
feishu = "Feishu"
19-
gewechat = "gewechat"
19+
# gewechat = "gewechat"
2020
github = "GitHub"
2121
heybox = "Heybox"
2222
kritor = "Kritor"

0 commit comments

Comments
 (0)