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>
This commit is contained in:
yucheng 2026-09-23 08:06:27 +00:00
parent 096ba84f00
commit a8fafaf750

View file

@ -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