Skip to content

Commit 4caa8e1

Browse files
committed
1 parent 113325d commit 4caa8e1

File tree

10 files changed

+5
-14
lines changed

10 files changed

+5
-14
lines changed

packages/google-api-core/google/api_core/grpc_helpers_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def create_channel(
220220
default_host=None,
221221
compression=None,
222222
attempt_direct_path: Optional[bool] = False,
223-
**kwargs
223+
**kwargs,
224224
):
225225
"""Create an AsyncIO secure channel with credentials.
226226

packages/google-api-core/google/api_core/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(
7878
result_type,
7979
metadata_type=None,
8080
polling=polling.DEFAULT_POLLING,
81-
**kwargs
81+
**kwargs,
8282
):
8383
super(Operation, self).__init__(polling=polling, **kwargs)
8484
self._operation = operation

packages/google-api-core/google/api_core/operations_v1/pagers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848
request: operations_pb2.ListOperationsRequest,
4949
response: operations_pb2.ListOperationsResponse,
5050
*,
51-
metadata: Sequence[Tuple[str, str]] = ()
51+
metadata: Sequence[Tuple[str, str]] = (),
5252
):
5353
super().__init__(
5454
method=method, request=request, response=response, metadata=metadata

packages/google-api-core/google/api_core/operations_v1/pagers_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848
request: operations_pb2.ListOperationsRequest,
4949
response: operations_pb2.ListOperationsResponse,
5050
*,
51-
metadata: Sequence[Tuple[str, str]] = ()
51+
metadata: Sequence[Tuple[str, str]] = (),
5252
):
5353
super().__init__(
5454
method=method, request=request, response=response, metadata=metadata

packages/google-api-core/google/api_core/operations_v1/pagers_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(
4747
request: operations_pb2.ListOperationsRequest,
4848
response: operations_pb2.ListOperationsResponse,
4949
*,
50-
metadata: Sequence[Tuple[str, str]] = ()
50+
metadata: Sequence[Tuple[str, str]] = (),
5151
):
5252
"""Instantiate the pager.
5353

packages/google-api-core/tests/asyncio/test_rest_streaming_async.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ async def test_next_escaped_characters_in_string(
292292
@pytest.mark.asyncio
293293
@pytest.mark.parametrize("response_type", [EchoResponse, httpbody_pb2.HttpBody])
294294
async def test_next_not_array(response_type):
295-
296295
data = '{"hello": 0}'
297296
with mock.patch.object(
298297
ResponseMock, "content", return_value=mock_async_gen(data)
@@ -352,7 +351,6 @@ async def test_check_buffer(response_type, return_value):
352351
@pytest.mark.asyncio
353352
@pytest.mark.parametrize("response_type", [EchoResponse, httpbody_pb2.HttpBody])
354353
async def test_next_html(response_type):
355-
356354
data = "<!DOCTYPE html><html></html>"
357355
with mock.patch.object(
358356
ResponseMock, "content", return_value=mock_async_gen(data)

packages/google-api-core/tests/unit/operations_v1/test_operations_rest_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ def test_operations_client_service_account_always_use_jwt(transport_class):
226226
PYPARAM_CLIENT,
227227
)
228228
def test_operations_client_from_service_account_file(client_class):
229-
230229
if "async" in str(client_class):
231230
# TODO(): Add support for service account creds to async REST transport.
232231
with pytest.raises(NotImplementedError):
@@ -547,7 +546,6 @@ def test_operations_client_client_options_credentials_file(
547546
# TODO(): Add support for credentials file to async REST transport.
548547
with pytest.raises(core_exceptions.AsyncRestUnsupportedParameterError):
549548
with warn_deprecated_credentials_file():
550-
551549
client_class(client_options=options, transport=transport_name)
552550
else:
553551
with mock.patch.object(transport_class, "__init__") as patched:
@@ -1089,7 +1087,6 @@ async def test_cancel_operation_rest_failure_async():
10891087
PYPARAM_CLIENT_TRANSPORT_CREDENTIALS,
10901088
)
10911089
def test_credentials_transport_error(client_class, transport_class, credentials):
1092-
10931090
# It is an error to provide credentials and a transport instance.
10941091
transport = transport_class(credentials=credentials)
10951092
with pytest.raises(ValueError):

packages/google-api-core/tests/unit/test_client_logging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def test_setup_logging_w_incorrect_scope():
8888

8989

9090
def test_initialize_logging():
91-
9291
with mock.patch("os.getenv", return_value="foogle.bar"):
9392
with mock.patch("google.api_core.client_logging._BASE_LOGGER_NAME", "foogle"):
9493
initialize_logging()

packages/google-api-core/tests/unit/test_client_options.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def test_constructor():
5555

5656

5757
def test_constructor_with_encrypted_cert_source():
58-
5958
options = client_options.ClientOptions(
6059
api_endpoint="foo.googleapis.com",
6160
client_encrypted_cert_source=get_client_encrypted_cert,
@@ -79,7 +78,6 @@ def test_constructor_with_both_cert_sources():
7978

8079

8180
def test_constructor_with_api_key():
82-
8381
options = client_options.ClientOptions(
8482
api_endpoint="foo.googleapis.com",
8583
client_cert_source=get_client_cert,

packages/google-api-core/tests/unit/test_page_iterator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ def test__has_next_page_w_max_results_not_done(self):
360360
assert iterator._has_next_page()
361361

362362
def test__has_next_page_w_max_results_done(self):
363-
364363
iterator = page_iterator.HTTPIterator(
365364
mock.sentinel.client,
366365
mock.sentinel.api_request,

0 commit comments

Comments
 (0)