Skip to content

Commit d242ec0

Browse files
committed
Fix HTTPAsyncIterator example
1 parent 779682d commit d242ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class HTTPAsyncIterator(Generic[T]):
329329
streams = await bot.fetch_streams()
330330
331331
# Flatten and return up to 1000 results (max 100 per page) which equates to 10 requests...
332-
streams = [async for stream in bot.fetch_streams(first=100, max_results=1000)]
332+
streams = [stream async for stream in bot.fetch_streams(first=100, max_results=1000)]
333333
334334
# Loop over results until we manually stop...
335335
async for item in bot.fetch_streams(first=100, max_results=1000):

0 commit comments

Comments
 (0)