Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Aug 24, 2024
1 parent 8d30b2d commit 0b51b09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion google/api_core/_rest_streaming_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ def _process_chunk(self, chunk: str):
def _grab(self):
# Add extra quotes to make json.loads happy.
if issubclass(self._response_message_cls, proto.Message):
return self._response_message_cls.from_json(self._ready_objs.popleft(), ignore_unknown_fields=True)
return self._response_message_cls.from_json(
self._ready_objs.popleft(), ignore_unknown_fields=True
)
elif issubclass(self._response_message_cls, google.protobuf.message.Message):
return Parse(self._ready_objs.popleft(), self._response_message_cls())
else:
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_rest_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def iter_content(self, *args, **kwargs):
)



@pytest.mark.parametrize(
"random_split,resp_message_is_proto_plus",
[(False, True), (False, False)],
Expand Down

0 comments on commit 0b51b09

Please sign in to comment.