Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Sep 25, 2024
1 parent abf42bb commit 5ea5e27
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
from google.longrunning import operations_pb2



class AbstractOperationsAsyncClient(AbstractOperationsBaseClient):
"""Manages long-running operations with an API service for the asynchronous client.
Expand Down Expand Up @@ -99,7 +98,7 @@ def __init__(
creation failed for any reason.
"""
super().__init__(
credentials=credentials, # type: ignore
credentials=credentials, # type: ignore
transport=transport,
client_options=client_options,
client_info=client_info,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
OperationsTransport,
)
from google.api_core.operations_v1.transports.rest import OperationsRestTransport

try:
from google.api_core.operations_v1.transports.rest_asyncio import (
OperationsRestAsyncTransport,
Expand Down Expand Up @@ -70,7 +71,9 @@ def get_transport_class(
The transport class to use.
"""
# If a specific transport is requested, return that one.
if label == "rest_asyncio" and not HAS_ASYNC_REST_DEPENDENCIES: # pragma: NO COVER
if (
label == "rest_asyncio" and not HAS_ASYNC_REST_DEPENDENCIES
): # pragma: NO COVER
raise ASYNC_REST_EXCEPTION

if label:
Expand Down
4 changes: 2 additions & 2 deletions google/api_core/operations_v1/transports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

if HAS_ASYNC_TRANSPORT:
_transport_registry["rest_asyncio"] = OperationsRestAsyncTransport
ASYNC_REST_CLASSES = ("OperationsRestAsyncTransport", )
ASYNC_REST_CLASSES = ("OperationsRestAsyncTransport",)
else:
ASYNC_REST_CLASSES = ()

__all__ = (
"OperationsTransport",
"OperationsRestTransport",
) + ASYNC_REST_CLASSES
) + ASYNC_REST_CLASSES
4 changes: 2 additions & 2 deletions google/api_core/operations_v1/transports/rest_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ def __init__(

super().__init__(
host=host,
credentials=credentials, # type: ignore
credentials=credentials, # type: ignore
client_info=client_info,
always_use_jwt_access=always_use_jwt_access,
)
# TODO(https://github.com/googleapis/python-api-core/issues/708): add support for
# `default_host` in AsyncAuthorizedSession for feature parity with the synchronous
# code.
self._session = AsyncAuthorizedSession(self._credentials) # type: ignore
self._session = AsyncAuthorizedSession(self._credentials) # type: ignore
self._prep_wrapped_messages(client_info)
self._http_options = http_options or {}
self._path_prefix = path_prefix
Expand Down

0 comments on commit 5ea5e27

Please sign in to comment.