11# -*- coding: utf-8 -*-
22#
3- # Copyright 2019 Google LLC
3+ # Copyright 2020 Google LLC
44#
55# Licensed under the Apache License, Version 2.0 (the "License");
66# you may not use this file except in compliance with the License.
3636from google .cloud .webrisk_v1beta1 .proto import webrisk_pb2_grpc
3737
3838
39- _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution ("google-cloud-webrisk" , ).version
39+ _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution ("google-cloud-webrisk" ).version
4040
4141
4242class WebRiskServiceV1Beta1Client (object ):
@@ -159,12 +159,12 @@ def __init__(
159159 self .transport = transport
160160 else :
161161 self .transport = web_risk_service_v1_beta1_grpc_transport .WebRiskServiceV1Beta1GrpcTransport (
162- address = api_endpoint , channel = channel , credentials = credentials ,
162+ address = api_endpoint , channel = channel , credentials = credentials
163163 )
164164
165165 if client_info is None :
166166 client_info = google .api_core .gapic_v1 .client_info .ClientInfo (
167- gapic_version = _GAPIC_LIBRARY_VERSION ,
167+ gapic_version = _GAPIC_LIBRARY_VERSION
168168 )
169169 else :
170170 client_info .gapic_version = _GAPIC_LIBRARY_VERSION
@@ -175,7 +175,7 @@ def __init__(
175175 # (Ordinarily, these are the defaults specified in the `*_config.py`
176176 # file next to this one.)
177177 self ._method_configs = google .api_core .gapic_v1 .config .parse_method_configs (
178- client_config ["interfaces" ][self ._INTERFACE_NAME ],
178+ client_config ["interfaces" ][self ._INTERFACE_NAME ]
179179 )
180180
181181 # Save a dictionary of cached API call functions.
@@ -316,7 +316,7 @@ def search_uris(
316316 client_info = self ._client_info ,
317317 )
318318
319- request = webrisk_pb2 .SearchUrisRequest (uri = uri , threat_types = threat_types , )
319+ request = webrisk_pb2 .SearchUrisRequest (uri = uri , threat_types = threat_types )
320320 return self ._inner_api_calls ["search_uris" ](
321321 request , retry = retry , timeout = timeout , metadata = metadata
322322 )
@@ -382,7 +382,7 @@ def search_hashes(
382382 )
383383
384384 request = webrisk_pb2 .SearchHashesRequest (
385- threat_types = threat_types , hash_prefix = hash_prefix ,
385+ threat_types = threat_types , hash_prefix = hash_prefix
386386 )
387387 return self ._inner_api_calls ["search_hashes" ](
388388 request , retry = retry , timeout = timeout , metadata = metadata
0 commit comments