Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 2624f77

Browse files
chore(python): use black==22.3.0 (#163)
Source-Link: googleapis/synthtool@6fab84a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe
1 parent c9f8db4 commit 2624f77

File tree

11 files changed

+993
-274
lines changed

11 files changed

+993
-274
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:2d13c2172a5d6129c861edaa48b60ead15aeaf58aa75e02d870c4cbdfa63aaba
16+
digest: sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,10 @@
361361
intersphinx_mapping = {
362362
"python": ("https://python.readthedocs.org/en/latest/", None),
363363
"google-auth": ("https://googleapis.dev/python/google-auth/latest/", None),
364-
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,),
364+
"google.api_core": (
365+
"https://googleapis.dev/python/google-api-core/latest/",
366+
None,
367+
),
365368
"grpc": ("https://grpc.github.io/grpc/python/", None),
366369
"proto-plus": ("https://proto-plus-python.readthedocs.io/en/latest/", None),
367370
"protobuf": ("https://googleapis.dev/python/protobuf/latest/", None),

google/cloud/functions_v1/services/cloud_functions_service/async_client.py

Lines changed: 73 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,20 @@ def sample_list_functions():
302302
)
303303

304304
# Send the request.
305-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
305+
response = await rpc(
306+
request,
307+
retry=retry,
308+
timeout=timeout,
309+
metadata=metadata,
310+
)
306311

307312
# This method is paged; wrap the response in a pager, which provides
308313
# an `__aiter__` convenience method.
309314
response = pagers.ListFunctionsAsyncPager(
310-
method=rpc, request=request, response=response, metadata=metadata,
315+
method=rpc,
316+
request=request,
317+
response=response,
318+
metadata=metadata,
311319
)
312320

313321
# Done; return the response.
@@ -413,7 +421,12 @@ def sample_get_function():
413421
)
414422

415423
# Send the request.
416-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
424+
response = await rpc(
425+
request,
426+
retry=retry,
427+
timeout=timeout,
428+
metadata=metadata,
429+
)
417430

418431
# Done; return the response.
419432
return response
@@ -526,7 +539,12 @@ def sample_create_function():
526539
)
527540

528541
# Send the request.
529-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
542+
response = await rpc(
543+
request,
544+
retry=retry,
545+
timeout=timeout,
546+
metadata=metadata,
547+
)
530548

531549
# Wrap the response in an operation future.
532550
response = operation_async.from_gapic(
@@ -646,7 +664,12 @@ def sample_update_function():
646664
)
647665

648666
# Send the request.
649-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
667+
response = await rpc(
668+
request,
669+
retry=retry,
670+
timeout=timeout,
671+
metadata=metadata,
672+
)
650673

651674
# Wrap the response in an operation future.
652675
response = operation_async.from_gapic(
@@ -775,7 +798,12 @@ def sample_delete_function():
775798
)
776799

777800
# Send the request.
778-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
801+
response = await rpc(
802+
request,
803+
retry=retry,
804+
timeout=timeout,
805+
metadata=metadata,
806+
)
779807

780808
# Wrap the response in an operation future.
781809
response = operation_async.from_gapic(
@@ -886,7 +914,12 @@ def sample_call_function():
886914
)
887915

888916
# Send the request.
889-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
917+
response = await rpc(
918+
request,
919+
retry=retry,
920+
timeout=timeout,
921+
metadata=metadata,
922+
)
890923

891924
# Done; return the response.
892925
return response
@@ -979,7 +1012,12 @@ def sample_generate_upload_url():
9791012
)
9801013

9811014
# Send the request.
982-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
1015+
response = await rpc(
1016+
request,
1017+
retry=retry,
1018+
timeout=timeout,
1019+
metadata=metadata,
1020+
)
9831021

9841022
# Done; return the response.
9851023
return response
@@ -1050,7 +1088,12 @@ def sample_generate_download_url():
10501088
)
10511089

10521090
# Send the request.
1053-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
1091+
response = await rpc(
1092+
request,
1093+
retry=retry,
1094+
timeout=timeout,
1095+
metadata=metadata,
1096+
)
10541097

10551098
# Done; return the response.
10561099
return response
@@ -1176,7 +1219,12 @@ def sample_set_iam_policy():
11761219
)
11771220

11781221
# Send the request.
1179-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
1222+
response = await rpc(
1223+
request,
1224+
retry=retry,
1225+
timeout=timeout,
1226+
metadata=metadata,
1227+
)
11801228

11811229
# Done; return the response.
11821230
return response
@@ -1303,7 +1351,12 @@ def sample_get_iam_policy():
13031351
)
13041352

13051353
# Send the request.
1306-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
1354+
response = await rpc(
1355+
request,
1356+
retry=retry,
1357+
timeout=timeout,
1358+
metadata=metadata,
1359+
)
13071360

13081361
# Done; return the response.
13091362
return response
@@ -1376,7 +1429,12 @@ def sample_test_iam_permissions():
13761429
)
13771430

13781431
# Send the request.
1379-
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
1432+
response = await rpc(
1433+
request,
1434+
retry=retry,
1435+
timeout=timeout,
1436+
metadata=metadata,
1437+
)
13801438

13811439
# Done; return the response.
13821440
return response
@@ -1390,7 +1448,9 @@ async def __aexit__(self, exc_type, exc, tb):
13901448

13911449
try:
13921450
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
1393-
gapic_version=pkg_resources.get_distribution("google-cloud-functions",).version,
1451+
gapic_version=pkg_resources.get_distribution(
1452+
"google-cloud-functions",
1453+
).version,
13941454
)
13951455
except pkg_resources.DistributionNotFound:
13961456
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo()

0 commit comments

Comments
 (0)