3434except AttributeError : # pragma: NO COVER
3535 OptionalRetry = Union [retries .AsyncRetry , object , None ] # type: ignore
3636
37- from google .api_core import operation # type: ignore
38- from google .api_core import operation_async # type: ignore
3937from google .cloud .asset_v1 .services .asset_service import pagers
4038from google .cloud .asset_v1 .types import asset_service
4139from google .cloud .asset_v1 .types import assets
4240from google .longrunning import operations_pb2 # type: ignore
43- from google .protobuf import field_mask_pb2 # type: ignore
44- from google .protobuf import timestamp_pb2 # type: ignore
45- from google .rpc import status_pb2 # type: ignore
46- from google .type import expr_pb2 # type: ignore
41+ import google .api_core .operation as operation # type: ignore
42+ import google .api_core .operation_async as operation_async # type: ignore
43+ import google .protobuf .field_mask_pb2 as field_mask_pb2 # type: ignore
44+ import google .protobuf .timestamp_pb2 as timestamp_pb2 # type: ignore
45+ import google .rpc .status_pb2 as status_pb2 # type: ignore
46+ import google .type .expr_pb2 as expr_pb2 # type: ignore
4747from .transports .base import AssetServiceTransport , DEFAULT_CLIENT_INFO
4848from .transports .grpc_asyncio import AssetServiceGrpcAsyncIOTransport
4949from .client import AssetServiceClient
@@ -106,7 +106,8 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
106106 Returns:
107107 AssetServiceAsyncClient: The constructed client.
108108 """
109- return AssetServiceClient .from_service_account_info .__func__ (AssetServiceAsyncClient , info , * args , ** kwargs ) # type: ignore
109+ sa_info_func = AssetServiceClient .from_service_account_info .__func__ # type: ignore
110+ return sa_info_func (AssetServiceAsyncClient , info , * args , ** kwargs )
110111
111112 @classmethod
112113 def from_service_account_file (cls , filename : str , * args , ** kwargs ):
@@ -122,7 +123,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
122123 Returns:
123124 AssetServiceAsyncClient: The constructed client.
124125 """
125- return AssetServiceClient .from_service_account_file .__func__ (AssetServiceAsyncClient , filename , * args , ** kwargs ) # type: ignore
126+ sa_file_func = AssetServiceClient .from_service_account_file .__func__ # type: ignore
127+ return sa_file_func (AssetServiceAsyncClient , filename , * args , ** kwargs )
126128
127129 from_service_account_json = from_service_account_file
128130
0 commit comments