dify/api/services/tools
Harry 9b5e5f0f50 refactor(api): replace dict type hints with Mapping for improved type safety
Updated type hints in several services to use Mapping instead of dict for better compatibility with various dictionary-like objects. Adjusted credential handling to ensure consistent encryption and decryption processes across ToolManager, DatasourceProviderService, ApiToolManageService, BuiltinToolManageService, and MCPToolManageService. This change enhances code clarity and adheres to strong typing practices.
2025-10-29 18:10:38 +08:00
..
api_tools_manage_service.py refactor(api): replace dict type hints with Mapping for improved type safety 2025-10-29 18:10:38 +08:00
builtin_tools_manage_service.py refactor(api): replace dict type hints with Mapping for improved type safety 2025-10-29 18:10:38 +08:00
mcp_tools_manage_service.py refactor(api): replace dict type hints with Mapping for improved type safety 2025-10-29 18:10:38 +08:00
tool_labels_service.py chore(api/services): apply ruff reformatting (#7599) 2024-08-26 13:43:57 +08:00
tools_manage_service.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
tools_transform_service.py Merge remote-tracking branch 'origin/main' into feat/trigger 2025-10-29 15:16:28 +08:00
workflow_tools_manage_service.py Fix: release WorkflowTool database sessions promptly (#26893) 2025-10-21 15:17:17 +08:00