We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffc224e + 50f09e9 commit 51bef49Copy full SHA for 51bef49
nhs_aws_helpers/__init__.py
@@ -12,7 +12,7 @@
12
from typing import (
13
IO,
14
Any,
15
- AsyncIterator,
+ AsyncGenerator,
16
Callable,
17
Dict,
18
Generator,
@@ -1125,7 +1125,9 @@ def assumed_role_session(
1125
return Session(botocore_session=session)
1126
1127
1128
-async def async_stream_from_s3(s3_get_resp: GetObjectOutputTypeDef, bytes_per_chunk: int) -> AsyncIterator[bytes]:
+async def async_stream_from_s3(
1129
+ s3_get_resp: GetObjectOutputTypeDef, bytes_per_chunk: int
1130
+) -> AsyncGenerator[bytes, None]:
1131
body = s3_get_resp["Body"]
1132
chunk = await run_in_executor(body.read, bytes_per_chunk)
1133
while chunk:
0 commit comments