Skip to content

Commit ef6050f

Browse files
Merge branch 'add-support-for-protobuf-5-x' of https://github.com/googleapis/python-api-core into add-support-for-protobuf-5-x
2 parents 2396495 + f263d69 commit ef6050f

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

google/api_core/operations_v1/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
"""Package for interacting with the google.longrunning.operations meta-API."""
1616

17-
from google.api_core.operations_v1.abstract_operations_client import AbstractOperationsClient
17+
from google.api_core.operations_v1.abstract_operations_client import (
18+
AbstractOperationsClient,
19+
)
1820
from google.api_core.operations_v1.operations_async_client import OperationsAsyncClient
1921
from google.api_core.operations_v1.operations_client import OperationsClient
2022
from google.api_core.operations_v1.transports.rest import OperationsRestTransport
@@ -23,5 +25,5 @@
2325
"AbstractOperationsClient",
2426
"OperationsAsyncClient",
2527
"OperationsClient",
26-
"OperationsRestTransport"
28+
"OperationsRestTransport",
2729
]

owlbot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
".flake8", # flake8-import-order, layout
3030
".coveragerc", # layout
3131
"CONTRIBUTING.rst", # no systests
32-
".github/workflows/unittest.yml", # exclude unittest gh action
33-
".github/workflows/lint.yml", # exclude lint gh action
32+
".github/workflows/unittest.yml", # exclude unittest gh action
33+
".github/workflows/lint.yml", # exclude lint gh action
3434
"README.rst",
3535
]
3636
templated_files = common.py_library(microgenerator=True, cov_level=100)

tests/unit/test_rest_streaming.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ def _parse_responses(self, responses: List[proto.Message]) -> bytes:
101101
# json.dumps returns a string surrounded with quotes that need to be stripped
102102
# in order to be an actual JSON.
103103
json_responses = [
104-
self._response_message_cls.to_json(r).strip('"')
105-
if issubclass(self._response_message_cls, proto.Message)
106-
else MessageToJson(r).strip('"')
104+
(
105+
self._response_message_cls.to_json(r).strip('"')
106+
if issubclass(self._response_message_cls, proto.Message)
107+
else MessageToJson(r).strip('"')
108+
)
107109
for r in responses
108110
]
109111
logging.info(f"Sending JSON stream: {json_responses}")

0 commit comments

Comments
 (0)