From dd095767206de1b6502be80349e457cd37101d11 Mon Sep 17 00:00:00 2001 From: Rikki Date: Sun, 9 Mar 2025 02:58:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20TypeError:=20BotCon?= =?UTF-8?q?fig.convert=5Fto=5Fspecifierset()=20takes=201=20positional=20ar?= =?UTF-8?q?gument=20but=202=20were=20given?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/chat/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/chat/config.py b/src/plugins/chat/config.py index e8c1480f3..8675ca9ee 100644 --- a/src/plugins/chat/config.py +++ b/src/plugins/chat/config.py @@ -83,7 +83,7 @@ class BotConfig: return config_dir @classmethod - def convert_to_specifierset(value: str) -> SpecifierSet: + def convert_to_specifierset(cls, value: str) -> SpecifierSet: """将 字符串 版本表达式转换成 SpecifierSet Args: value[str]: 版本表达式(字符串)