From 1600d40243f511d1b925caeed6e8825e1cfb28ac Mon Sep 17 00:00:00 2001 From: Tai An Date: Wed, 3 Jun 2026 12:10:24 -0700 Subject: [PATCH] style: black-format handler.py (collapse task_mappings.append call) --- litellm/llms/anthropic/chat/guardrail_translation/handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/llms/anthropic/chat/guardrail_translation/handler.py b/litellm/llms/anthropic/chat/guardrail_translation/handler.py index 4aea5c8178f..4631d404476 100644 --- a/litellm/llms/anthropic/chat/guardrail_translation/handler.py +++ b/litellm/llms/anthropic/chat/guardrail_translation/handler.py @@ -251,9 +251,7 @@ class AnthropicMessagesHandler(BaseTranslation): block_text = block.get("text") if block_text is not None: texts_to_check.append(block_text) - task_mappings.append( - (msg_idx, int(content_idx)) - ) + task_mappings.append((msg_idx, int(content_idx))) # Extract images if content_item.get("type") == "image":