4545except AttributeError : # pragma: NO COVER
4646 OptionalRetry = Union [retries .AsyncRetry , object , None ] # type: ignore
4747
48- from google .api_core import operation # type: ignore
49- from google .api_core import operation_async # type: ignore
5048from google .cloud .datastore_admin_v1 .services .datastore_admin import pagers
5149from google .cloud .datastore_admin_v1 .types import datastore_admin
5250from google .cloud .datastore_admin_v1 .types import index
5351from google .longrunning import operations_pb2 # type: ignore
54- from google .protobuf import empty_pb2 # type: ignore
52+ import google .api_core .operation as operation # type: ignore
53+ import google .api_core .operation_async as operation_async # type: ignore
54+ import google .protobuf .empty_pb2 as empty_pb2 # type: ignore
5555from .transports .base import DatastoreAdminTransport , DEFAULT_CLIENT_INFO
5656from .transports .grpc_asyncio import DatastoreAdminGrpcAsyncIOTransport
5757from .client import DatastoreAdminClient
@@ -170,7 +170,10 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
170170 Returns:
171171 DatastoreAdminAsyncClient: The constructed client.
172172 """
173- return DatastoreAdminClient .from_service_account_info .__func__ (DatastoreAdminAsyncClient , info , * args , ** kwargs ) # type: ignore
173+ sa_info_func = (
174+ DatastoreAdminClient .from_service_account_info .__func__ # type: ignore
175+ )
176+ return sa_info_func (DatastoreAdminAsyncClient , info , * args , ** kwargs )
174177
175178 @classmethod
176179 def from_service_account_file (cls , filename : str , * args , ** kwargs ):
@@ -186,7 +189,10 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
186189 Returns:
187190 DatastoreAdminAsyncClient: The constructed client.
188191 """
189- return DatastoreAdminClient .from_service_account_file .__func__ (DatastoreAdminAsyncClient , filename , * args , ** kwargs ) # type: ignore
192+ sa_file_func = (
193+ DatastoreAdminClient .from_service_account_file .__func__ # type: ignore
194+ )
195+ return sa_file_func (DatastoreAdminAsyncClient , filename , * args , ** kwargs )
190196
191197 from_service_account_json = from_service_account_file
192198
0 commit comments