fix: 修复 TypeError: BotConfig.convert_to_specifierset() takes 1 positional argument but 2 were given
This commit is contained in:
@@ -83,7 +83,7 @@ class BotConfig:
|
|||||||
return config_dir
|
return config_dir
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def convert_to_specifierset(value: str) -> SpecifierSet:
|
def convert_to_specifierset(cls, value: str) -> SpecifierSet:
|
||||||
"""将 字符串 版本表达式转换成 SpecifierSet
|
"""将 字符串 版本表达式转换成 SpecifierSet
|
||||||
Args:
|
Args:
|
||||||
value[str]: 版本表达式(字符串)
|
value[str]: 版本表达式(字符串)
|
||||||
|
|||||||
Reference in New Issue
Block a user