File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
google/api_core/operations_v1 Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 3939from google .longrunning import operations_pb2
4040
4141
42-
4342class 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 ,
Original file line number Diff line number Diff line change 2525 OperationsTransport ,
2626)
2727from google .api_core .operations_v1 .transports .rest import OperationsRestTransport
28+
2829try :
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 :
Original file line number Diff line number Diff line change 3434
3535if HAS_ASYNC_TRANSPORT :
3636 _transport_registry ["rest_asyncio" ] = OperationsRestAsyncTransport
37- ASYNC_REST_CLASSES = ("OperationsRestAsyncTransport" , )
37+ ASYNC_REST_CLASSES = ("OperationsRestAsyncTransport" ,)
3838else :
3939 ASYNC_REST_CLASSES = ()
4040
4141__all__ = (
4242 "OperationsTransport" ,
4343 "OperationsRestTransport" ,
44- ) + ASYNC_REST_CLASSES
44+ ) + ASYNC_REST_CLASSES
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments