Skip to content

Commit 0194d22

Browse files
committed
fix async example
1 parent e114e51 commit 0194d22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/async_example.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ async def async_examples():
2828

2929
# 5. Async Streaming Download
3030
async for chunk in codebox.astream_download("async_file.txt"):
31-
print(chunk.content)
31+
assert isinstance(chunk, bytes)
32+
print(chunk.decode())
3233

3334

3435
if __name__ == "__main__":

0 commit comments

Comments
 (0)