Skip to content

Commit 240657e

Browse files
authored
Merge pull request #168 from NHSDigital/mesh-2092-dependabot-combined
MESH-2092 Combined Dependabot PRs
2 parents d0b96a8 + fc2b7f0 commit 240657e

File tree

4 files changed

+211
-204
lines changed

4 files changed

+211
-204
lines changed

nhs_aws_helpers/async_s3_object_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async def read(self, num: Optional[int] = None) -> Union[str, bytes]:
123123
body = await self._maybe_get_body()
124124

125125
if num is None:
126-
chunk = body.read()
126+
chunk = cast(Union[str, bytes], body.read())
127127
if self._encoding:
128128
chunk = self.ensure_valid_chunk(chunk)
129129
else:

nhs_aws_helpers/s3_object_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def read(self, num: Optional[int] = None) -> Union[str, bytes]:
129129
return chunk
130130

131131
if num is None:
132-
chunk = self.body.read()
132+
chunk = cast(Union[str, bytes], self.body.read())
133133
if self._encoding:
134134
chunk = self.ensure_valid_chunk(chunk)
135135
else:

0 commit comments

Comments
 (0)