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 ops_service tracin… (#35064)

wdeveloper16dd50a68bf2c5
diff --git a/api/services/ops_service.py b/api/services/ops_service.py
index 0db3d3efec4..3ad42faf249 100644
--- a/api/services/ops_service.py
+++ b/api/services/ops_service.py
@@ -1,3 +1,5 @@
+from typing import Any
+
from sqlalchemy import select
from core.ops.entities.config_entity import BaseTracingConfig
@@ -135,7 +137,7 @@ class OpsService:
return trace_config_data.to_dict()
@classmethod
- def create_tracing_app_config(cls, app_id: str, tracing_provider: str, tracing_config: dict):
+ def create_tracing_app_config(cls, app_id: str, tracing_provider: str, tracing_config: dict[str, Any]):
"""
Create tracing app config
:param app_id: app id
@@ -210,7 +212,7 @@ class OpsService:
return {"result": "success"}
@classmethod
- def update_tracing_app_config(cls, app_id: str, tracing_provider: str, tracing_config: dict):
+ def update_tracing_app_config(cls, app_id: str, tracing_provider: str, tracing_config: dict[str, Any]):
"""
Update tracing app config
:param app_id: app id