From f2cc4311c5761252f0e36585e86cf899dbd040c1 Mon Sep 17 00:00:00 2001 From: Raven95676 Date: Wed, 9 Apr 2025 18:55:20 +0800 Subject: [PATCH] fix: optional value --- astrbot/core/star/star_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/star/star_tools.py b/astrbot/core/star/star_tools.py index 777f7152..405ccc63 100644 --- a/astrbot/core/star/star_tools.py +++ b/astrbot/core/star/star_tools.py @@ -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: """ 返回插件数据目录的绝对路径。