Skip to content

Commit fc2b7f0

Browse files
mesh-2092: fix mypy issues
1 parent 75e18b8 commit fc2b7f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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)