Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

refactor: replace bare dict with dict[str, Any] in plugin endpoint_service (#35065)

wdeveloper16e8dd3461e879
diff --git a/api/services/plugin/endpoint_service.py b/api/services/plugin/endpoint_service.py
index 11b8e0a3d91..1727cd7abd6 100644
--- a/api/services/plugin/endpoint_service.py
+++ b/api/services/plugin/endpoint_service.py
@@ -1,9 +1,13 @@
+from typing import Any
+
from core.plugin.impl.endpoint import PluginEndpointClient
class EndpointService:
@classmethod
- def create_endpoint(cls, tenant_id: str, user_id: str, plugin_unique_identifier: str, name: str, settings: dict):
+ def create_endpoint(
+ cls, tenant_id: str, user_id: str, plugin_unique_identifier: str, name: str, settings: dict[str, Any]
+ ):
return PluginEndpointClient().create_endpoint(
tenant_id=tenant_id,
user_id=user_id,
@@ -32,7 +36,7 @@ class EndpointService:
)
@classmethod
- def update_endpoint(cls, tenant_id: str, user_id: str, endpoint_id: str, name: str, settings: dict):
+ def update_endpoint(cls, tenant_id: str, user_id: str, endpoint_id: str, name: str, settings: dict[str, Any]):
return PluginEndpointClient().update_endpoint(
tenant_id=tenant_id,
user_id=user_id,