From c3fb85557c2ed2bbd209582628fe2878a41e33e0 Mon Sep 17 00:00:00 2001 From: Liang Xu Date: Sun, 6 Sep 2026 04:30:58 +0800 Subject: [PATCH] style(router): format common_utils.py with ruff format --- litellm/router_utils/common_utils.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/litellm/router_utils/common_utils.py b/litellm/router_utils/common_utils.py index 50fe9aee308..61812d71fc9 100644 --- a/litellm/router_utils/common_utils.py +++ b/litellm/router_utils/common_utils.py @@ -233,12 +233,8 @@ def filter_web_search_deployments( return healthy_deployments tools: Final = request_kwargs.get("tools") or [] - is_web_search_request: Final = any( - isinstance(tool, dict) and _is_web_search_tool(tool) for tool in tools - ) - is_web_fetch_request: Final = any( - isinstance(tool, dict) and _is_web_fetch_tool(tool) for tool in tools - ) + is_web_search_request: Final = any(isinstance(tool, dict) and _is_web_search_tool(tool) for tool in tools) + is_web_fetch_request: Final = any(isinstance(tool, dict) and _is_web_fetch_tool(tool) for tool in tools) if not is_web_search_request and not is_web_fetch_request: return healthy_deployments