Skip to content

Commit f263d69

Browse files
committed
run black
1 parent 3bca72c commit f263d69

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
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
]

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def default(session, install_grpc=True, prerelease=False):
139139
".[grpc]" if install_grpc else ".",
140140
"-c",
141141
f"{constraints_dir}/constraints-{session.python}.txt",
142-
)
142+
)
143143

144144
# Print out package versions of dependencies
145145
session.run(

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)