From 0e024221a81875bb656d050e9f58b33bc39b7d71 Mon Sep 17 00:00:00 2001 From: Chesars Date: Mon, 2 Mar 2026 17:05:37 -0300 Subject: [PATCH] refactor: remove no-op pass branch in process_items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address Greptile review nit — the if + pass was a no-op since the mutation was removed. Deleting the branch entirely. --- litellm/llms/vertex_ai/common_utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/litellm/llms/vertex_ai/common_utils.py b/litellm/llms/vertex_ai/common_utils.py index 8f8baad94c..c2f4257cd4 100644 --- a/litellm/llms/vertex_ai/common_utils.py +++ b/litellm/llms/vertex_ai/common_utils.py @@ -615,8 +615,6 @@ def process_items(schema, depth=0): f"Max depth of {DEFAULT_MAX_RECURSE_DEPTH} exceeded while processing schema. Please check the schema for excessive nesting." ) if isinstance(schema, dict): - if "items" in schema and isinstance(schema["items"], dict) and _is_any_type_schema(schema["items"]): - pass # preserve "any type" semantics — don't coerce to object for key, value in schema.items(): if isinstance(value, dict): process_items(value, depth + 1)