Skip to content

Commit b93ea81

Browse files
committed
🗑️ deprecate gewechat
1 parent fc5d971 commit b93ea81

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from nonebot_plugin_alconna.uniseg.loader import BaseLoader
22
from nonebot_plugin_alconna.uniseg.constraint import SupportAdapter
3+
from warnings import warn
34

45

56
class Loader(BaseLoader):
@@ -14,6 +15,7 @@ def get_builder(self):
1415
def get_exporter(self):
1516
from .exporter import GeWeChatMessageExporter
1617

18+
warn("Adapter `Gewechat` is deprecated and will be removed in the future.", DeprecationWarning, stacklevel=2)
1719
return GeWeChatMessageExporter()
1820

1921
def get_fetcher(self):

src/nonebot_plugin_alconna/uniseg/constraint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class SupportAdapterModule(str, Enum):
116116
discord = "nonebot.adapters.discord"
117117
dodo = "nonebot.adapters.dodo"
118118
feishu = "nonebot.adapters.feishu"
119-
gewechat = "nonebot.adapters.gewechat"
119+
# gewechat = "nonebot.adapters.gewechat"
120120
github = "nonebot.adapters.github"
121121
heybox = "nonebot.adapters.heybox"
122122
kritor = "nonebot.adapters.kritor"

0 commit comments

Comments
 (0)