diff --git a/fastapi/routing.py b/fastapi/routing.py index c465538e98..e31b09474a 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -635,7 +635,7 @@ def get_request_handler( else: def _sync_stream_jsonl() -> Iterator[bytes]: - for item in gen: + for item in gen: # ty: ignore[not-iterable] yield _serialize_item(item) jsonl_stream_content = _sync_stream_jsonl()