(output: AsyncIterator[Any])
| 795 | return None |
| 796 | |
| 797 | async def json_generator(output: AsyncIterator[Any]) -> AsyncIterator[str]: |
| 798 | async for chunk in output: |
| 799 | encoded_chunk = _encode_chunk_to_json(chunk) |
| 800 | if encoded_chunk is None: |
| 801 | break |
| 802 | yield encoded_chunk |
| 803 | |
| 804 | async def _invoke_callable_or_raise( |
| 805 | invocation_callable: Callable[..., Any], |
no test coverage detected