chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-02-12 16:13:48 -06:00
parent 3238d94a0e
commit 2a11175f22
65 changed files with 204 additions and 92 deletions
+3 -2
View File
@@ -782,7 +782,6 @@ def extract_urls(text: str) -> list[str]:
return url_pattern.findall(text)
async def cleanup_response(
response: Optional[aiohttp.ClientResponse],
session: Optional[aiohttp.ClientSession],
@@ -799,7 +798,9 @@ async def stream_wrapper(response, session, content_handler=None):
This is more reliable than BackgroundTask which may not run if client disconnects.
"""
try:
stream = content_handler(response.content) if content_handler else response.content
stream = (
content_handler(response.content) if content_handler else response.content
)
async for chunk in stream:
yield chunk
finally: