From eb6d90ae88b7cacce5a9c8442c5134ae984e0a82 Mon Sep 17 00:00:00 2001 From: molanp <104612722+molanp@users.noreply.github.com> Date: Wed, 22 Oct 2025 20:57:07 +0800 Subject: [PATCH] =?UTF-8?q?docs(data-source):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=AE=89=E8=A3=85=E5=87=BD=E6=95=B0=E7=9A=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=96=87=E6=A1=A3=E8=AF=B4=E6=98=8E=20(#2069?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改 StoreManager 类中安装插件函数的文档字符串,更新参数列表说 明。将原有的 github_url、module_path、is_dir 参数说明替换为 plugin_info 和 source 参数说明,保持文档与实际函数签名一致。 --- zhenxun/builtin_plugins/plugin_store/data_source.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zhenxun/builtin_plugins/plugin_store/data_source.py b/zhenxun/builtin_plugins/plugin_store/data_source.py index 284307d5..b17a8c9f 100644 --- a/zhenxun/builtin_plugins/plugin_store/data_source.py +++ b/zhenxun/builtin_plugins/plugin_store/data_source.py @@ -263,10 +263,9 @@ class StoreManager: """安装插件 参数: - github_url: 仓库地址 - module_path: 模块路径 - is_dir: 是否是文件夹 + plugin_info: 插件信息 is_external: 是否是外部仓库 + source: 源 """ repo_type = RepoType.GITHUB if is_external else None if source == "ali":