From bf9bb18c31427a0cb757cf3f54a4f7a5e803ecf2 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Mon, 23 Mar 2026 10:59:55 -0700 Subject: [PATCH] fix: use direct AsyncGenerator annotation instead of string --- litellm/llms/custom_httpx/llm_http_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/custom_httpx/llm_http_handler.py b/litellm/llms/custom_httpx/llm_http_handler.py index de860ea762c..b8b03b4ab00 100644 --- a/litellm/llms/custom_httpx/llm_http_handler.py +++ b/litellm/llms/custom_httpx/llm_http_handler.py @@ -155,7 +155,7 @@ else: async def _async_file_chunks( fp: Any, chunk_size: int = 65536 -) -> "AsyncGenerator[bytes, None]": +) -> AsyncGenerator[bytes, None]: """Async generator that reads a sync file-like object in chunks via a thread executor. Dispatches each blocking disk read to a thread pool via anyio so the async