From a8fafaf75032bf6919c33530310d1bfe527381d0 Mon Sep 17 00:00:00 2001 From: yucheng Date: Wed, 23 Sep 2026 08:06:27 +0000 Subject: [PATCH] style: tag the anthropic result cast with a cast-ok reason Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/litellm_core_utils/litellm_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py index 11b1d4725f7..2cf1b7e4673 100644 --- a/litellm/litellm_core_utils/litellm_logging.py +++ b/litellm/litellm_core_utils/litellm_logging.py @@ -4256,7 +4256,7 @@ class Logging(LiteLLMLoggingBaseClass): ) else: result = anthropic_message_to_model_response( - cast(Mapping[str, object], result), + cast(Mapping[str, object], result), # cast-ok: this handler receives heterogeneous provider results typed as Any upstream speed=self.optional_params.get("speed") if self.optional_params else None, ) return result