From f1f2fff98018a819911ea97d50e4c0324bdf084b Mon Sep 17 00:00:00 2001 From: eeshsaxena Date: Mon, 3 Aug 2026 19:08:49 +0530 Subject: [PATCH] style: apply ruff format to json_validation_rule.py --- litellm/litellm_core_utils/json_validation_rule.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litellm/litellm_core_utils/json_validation_rule.py b/litellm/litellm_core_utils/json_validation_rule.py index 79f7df5eb41..861b0b9373a 100644 --- a/litellm/litellm_core_utils/json_validation_rule.py +++ b/litellm/litellm_core_utils/json_validation_rule.py @@ -58,8 +58,7 @@ def normalize_json_schema_types( # branch those entries fall through to the generic list recursion, # which leaves the bare strings uppercase. normalized_schema[key] = [ - type_mapping.get(entry, entry) if isinstance(entry, str) else entry - for entry in value + type_mapping.get(entry, entry) if isinstance(entry, str) else entry for entry in value ] elif key == "properties" and isinstance(value, dict): # Recursively normalize properties