fix: 修复 TypeError: BotConfig.convert_to_specifierset() takes 1 positional argument but 2 were given

This commit is contained in:
Rikki committed 2025-03-09 02:58:43 +08:00
1 parent 18f839b7d6
commit dd09576720
1 file changed
+1 -1
+1 -1
View File
@@ -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]: 版本表达式(字符串)