From 1a3bd91b480baa63177ec371f02dc3ee896aedcf Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Fri, 6 Feb 2026 20:59:41 +0800 Subject: [PATCH] fix: type checking --- api/services/plugin/plugin_service.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/services/plugin/plugin_service.py b/api/services/plugin/plugin_service.py index 710c654ee2..908660781d 100644 --- a/api/services/plugin/plugin_service.py +++ b/api/services/plugin/plugin_service.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import logging from collections.abc import Mapping, Sequence from mimetypes import guess_type @@ -338,7 +340,7 @@ class PluginService: ) @staticmethod - def batch_upgrade_plugins_from_marketplace(tenant_id: str) -> "dict[str, list[dict]]": + def batch_upgrade_plugins_from_marketplace(tenant_id: str) -> dict[str, list[dict]]: """ Batch upgrade all marketplace plugins that have updates available @@ -351,7 +353,7 @@ class PluginService: raise ValueError("marketplace is not enabled") manager = PluginInstaller() - result = { + result: dict[str, list[dict]] = { "success": [], "failed": [], "skipped": [],