From daf12e19a71e4c368d262ed729ac8b1942600ef4 Mon Sep 17 00:00:00 2001 From: Zara Thomas Date: Wed, 19 Aug 2026 08:47:19 +0100 Subject: [PATCH] lint: combine if branches to satisfy ruff SIM114 Co-authored-by: Cursor --- litellm/llms/fireworks_ai/chat/transformation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/llms/fireworks_ai/chat/transformation.py b/litellm/llms/fireworks_ai/chat/transformation.py index 5de471eba59..3cbe8a8d9dc 100644 --- a/litellm/llms/fireworks_ai/chat/transformation.py +++ b/litellm/llms/fireworks_ai/chat/transformation.py @@ -480,9 +480,9 @@ class FireworksAIConfig(FireworksAIMixin, OpenAIGPTConfig): if not isinstance(schema, dict): return for key in list(schema): - if key in FireworksAIConfig._FIREWORKS_TOOL_SCHEMA_STRIP_KEYS: - schema.pop(key, None) - elif key == "default" and schema[key] is None: + if key in FireworksAIConfig._FIREWORKS_TOOL_SCHEMA_STRIP_KEYS or ( + key == "default" and schema[key] is None + ): schema.pop(key, None) elif key == "properties" and isinstance(schema[key], dict): for prop in schema[key].values():