MCPcopy
hub / github.com/encode/httpx / iterator

Function iterator

tests/test_decoders.py:245–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243@pytest.mark.anyio
244async def test_text_decoder_with_autodetect(data, encoding):
245 async def iterator() -> typing.AsyncIterator[bytes]:
246 nonlocal data
247 for chunk in data:
248 yield chunk
249
250 def autodetect(content):
251 return chardet.detect(content).get("encoding")

Calls

no outgoing calls

Tested by

no test coverage detected