fix: use direct AsyncGenerator annotation instead of string

This commit is contained in:
Ishaan Jaffer 2026-03-23 10:59:55 -07:00
parent 3a49b5b879
commit bf9bb18c31

View file

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