From e974ec4da8af1603631997490fbe73df225926ad Mon Sep 17 00:00:00 2001 From: Ruiming Zhao Date: Fri, 14 Aug 2026 17:00:37 -0700 Subject: [PATCH] style(anthropic): wrap document block append for ruff format --- litellm/litellm_core_utils/prompt_templates/factory.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/prompt_templates/factory.py b/litellm/litellm_core_utils/prompt_templates/factory.py index 52762dc597e..2ce157ae3b6 100644 --- a/litellm/litellm_core_utils/prompt_templates/factory.py +++ b/litellm/litellm_core_utils/prompt_templates/factory.py @@ -2438,7 +2438,9 @@ def anthropic_messages_pt( anthropic_content_element=_document_content_element, original_content_element=m, ) - user_content.append(cast(AnthropicMessagesDocumentParam, _document_content_element)) # cast-ok: same union narrowing as above + user_content.append( + cast(AnthropicMessagesDocumentParam, _document_content_element) + ) # cast-ok: same union narrowing as above continue # Bedrock invoke models have format: invoke/... # Vertex AI Anthropic also doesn't support URL sources for images