style: apply ruff format to touched handlers

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-08-11 13:47:34 +00:00
parent 3018abc77c
commit 332e8aa3e5
2 changed files with 2 additions and 6 deletions

View file

@ -949,9 +949,7 @@ class WebSearchInterceptionLogger(CustomLogger):
if not native_blocks:
return response
if isinstance(response, _MutableMappingLike) and isinstance(response, dict):
response["content"] = WebSearchInterceptionLogger._prepended_content(
response.get("content"), native_blocks
)
response["content"] = WebSearchInterceptionLogger._prepended_content(response.get("content"), native_blocks)
return response
if isinstance(response, _HasContent):
try:

View file

@ -1163,9 +1163,7 @@ class AnthropicMessagesHandler(BaseTranslation):
"""
try:
sse_string: Final = sse_bytes.decode("utf-8")
return "".join(
self._sse_text_delta(event) for event in sse_string.split("\n\n") if event.strip()
)
return "".join(self._sse_text_delta(event) for event in sse_string.split("\n\n") if event.strip())
except Exception as e:
verbose_proxy_logger.error("Error extracting text from SSE: %s", e)
return ""