fix: optional value

This commit is contained in:
Raven95676
2025-04-09 18:55:20 +08:00
parent 8844830859
commit f2cc4311c5
+1 -1
View File
@@ -147,7 +147,7 @@ class StarTools:
cls._context.unregister_llm_tool(name)
@classmethod
def get_data_dir(cls, plugin_name: Optional[str]) -> Path:
def get_data_dir(cls, plugin_name: Optional[str] = None) -> Path:
"""
返回插件数据目录的绝对路径。