Skip to content

Commit 5ea5e27

Browse files
committed
lint
1 parent abf42bb commit 5ea5e27

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

google/api_core/operations_v1/abstract_operations_async_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
from google.longrunning import operations_pb2
4040

4141

42-
4342
class AbstractOperationsAsyncClient(AbstractOperationsBaseClient):
4443
"""Manages long-running operations with an API service for the asynchronous client.
4544
@@ -99,7 +98,7 @@ def __init__(
9998
creation failed for any reason.
10099
"""
101100
super().__init__(
102-
credentials=credentials, # type: ignore
101+
credentials=credentials, # type: ignore
103102
transport=transport,
104103
client_options=client_options,
105104
client_info=client_info,

google/api_core/operations_v1/abstract_operations_base_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
OperationsTransport,
2626
)
2727
from google.api_core.operations_v1.transports.rest import OperationsRestTransport
28+
2829
try:
2930
from google.api_core.operations_v1.transports.rest_asyncio import (
3031
OperationsRestAsyncTransport,
@@ -70,7 +71,9 @@ def get_transport_class(
7071
The transport class to use.
7172
"""
7273
# If a specific transport is requested, return that one.
73-
if label == "rest_asyncio" and not HAS_ASYNC_REST_DEPENDENCIES: # pragma: NO COVER
74+
if (
75+
label == "rest_asyncio" and not HAS_ASYNC_REST_DEPENDENCIES
76+
): # pragma: NO COVER
7477
raise ASYNC_REST_EXCEPTION
7578

7679
if label:

google/api_core/operations_v1/transports/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434

3535
if HAS_ASYNC_TRANSPORT:
3636
_transport_registry["rest_asyncio"] = OperationsRestAsyncTransport
37-
ASYNC_REST_CLASSES = ("OperationsRestAsyncTransport", )
37+
ASYNC_REST_CLASSES = ("OperationsRestAsyncTransport",)
3838
else:
3939
ASYNC_REST_CLASSES = ()
4040

4141
__all__ = (
4242
"OperationsTransport",
4343
"OperationsRestTransport",
44-
) + ASYNC_REST_CLASSES
44+
) + ASYNC_REST_CLASSES

google/api_core/operations_v1/transports/rest_asyncio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ def __init__(
125125

126126
super().__init__(
127127
host=host,
128-
credentials=credentials, # type: ignore
128+
credentials=credentials, # type: ignore
129129
client_info=client_info,
130130
always_use_jwt_access=always_use_jwt_access,
131131
)
132132
# TODO(https://github.com/googleapis/python-api-core/issues/708): add support for
133133
# `default_host` in AsyncAuthorizedSession for feature parity with the synchronous
134134
# code.
135-
self._session = AsyncAuthorizedSession(self._credentials) # type: ignore
135+
self._session = AsyncAuthorizedSession(self._credentials) # type: ignore
136136
self._prep_wrapped_messages(client_info)
137137
self._http_options = http_options or {}
138138
self._path_prefix = path_prefix

0 commit comments

Comments
 (0)