From d242ec064b03ffded4c875a0d54e28b8587e2519 Mon Sep 17 00:00:00 2001 From: EvieePy <29671945+EvieePy@users.noreply.github.com> Date: Sun, 5 Jan 2025 05:03:46 +1000 Subject: [PATCH] Fix HTTPAsyncIterator example --- twitchio/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitchio/http.py b/twitchio/http.py index 684e3970..a0336879 100644 --- a/twitchio/http.py +++ b/twitchio/http.py @@ -329,7 +329,7 @@ class HTTPAsyncIterator(Generic[T]): streams = await bot.fetch_streams() # Flatten and return up to 1000 results (max 100 per page) which equates to 10 requests... - streams = [async for stream in bot.fetch_streams(first=100, max_results=1000)] + streams = [stream async for stream in bot.fetch_streams(first=100, max_results=1000)] # Loop over results until we manually stop... async for item in bot.fetch_streams(first=100, max_results=1000):