fix: type checking

This commit is contained in:
Junyan Qin
2026-02-06 20:59:41 +08:00
parent a1b15978d5
commit 1a3bd91b48

View File

@ -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": [],