Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42525f8

Browse files
yoshi-automationbusunkim96
authored andcommitted
chore(grafeas): add trailing commas (via synth) (googleapis#9558)
1 parent 9f1c680 commit 42525f8

14 files changed

+80
-63
lines changed

grafeas/grafeas/grafeas.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@
2222
from grafeas.grafeas_v1 import types
2323

2424

25-
__all__ = ("enums", "types", "GrafeasClient")
25+
__all__ = (
26+
"enums",
27+
"types",
28+
"GrafeasClient",
29+
)

grafeas/grafeas/grafeas_v1/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ class GrafeasClient(grafeas_client.GrafeasClient):
2727
enums = enums
2828

2929

30-
__all__ = ("enums", "types", "GrafeasClient")
30+
__all__ = (
31+
"enums",
32+
"types",
33+
"GrafeasClient",
34+
)

grafeas/grafeas/grafeas_v1/gapic/grafeas_client.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from grafeas.grafeas_v1.proto import grafeas_pb2_grpc
4040

4141

42-
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("grafeas").version
42+
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("grafeas",).version
4343

4444

4545
class GrafeasClient(object):
@@ -69,7 +69,7 @@ class GrafeasClient(object):
6969
def note_path(cls, project, note):
7070
"""Return a fully-qualified note string."""
7171
return google.api_core.path_template.expand(
72-
"projects/{project}/notes/{note}", project=project, note=note
72+
"projects/{project}/notes/{note}", project=project, note=note,
7373
)
7474

7575
@classmethod
@@ -85,7 +85,7 @@ def occurrence_path(cls, project, occurrence):
8585
def project_path(cls, project):
8686
"""Return a fully-qualified project string."""
8787
return google.api_core.path_template.expand(
88-
"projects/{project}", project=project
88+
"projects/{project}", project=project,
8989
)
9090

9191
def __init__(self, transport, client_config=None, client_info=None):
@@ -125,7 +125,7 @@ def __init__(self, transport, client_config=None, client_info=None):
125125

126126
if client_info is None:
127127
client_info = google.api_core.gapic_v1.client_info.ClientInfo(
128-
gapic_version=_GAPIC_LIBRARY_VERSION
128+
gapic_version=_GAPIC_LIBRARY_VERSION,
129129
)
130130
else:
131131
client_info.gapic_version = _GAPIC_LIBRARY_VERSION
@@ -136,7 +136,7 @@ def __init__(self, transport, client_config=None, client_info=None):
136136
# (Ordinarily, these are the defaults specified in the `*_config.py`
137137
# file next to this one.)
138138
self._method_configs = google.api_core.gapic_v1.config.parse_method_configs(
139-
client_config["interfaces"][self._INTERFACE_NAME]
139+
client_config["interfaces"][self._INTERFACE_NAME],
140140
)
141141

142142
# Save a dictionary of cached API call functions.
@@ -202,7 +202,7 @@ def get_occurrence(
202202
client_info=self._client_info,
203203
)
204204

205-
request = grafeas_pb2.GetOccurrenceRequest(name=name)
205+
request = grafeas_pb2.GetOccurrenceRequest(name=name,)
206206
if metadata is None:
207207
metadata = []
208208
metadata = list(metadata)
@@ -300,7 +300,7 @@ def list_occurrences(
300300
)
301301

302302
request = grafeas_pb2.ListOccurrencesRequest(
303-
parent=parent, filter=filter_, page_size=page_size
303+
parent=parent, filter=filter_, page_size=page_size,
304304
)
305305
if metadata is None:
306306
metadata = []
@@ -385,7 +385,7 @@ def delete_occurrence(
385385
client_info=self._client_info,
386386
)
387387

388-
request = grafeas_pb2.DeleteOccurrenceRequest(name=name)
388+
request = grafeas_pb2.DeleteOccurrenceRequest(name=name,)
389389
if metadata is None:
390390
metadata = []
391391
metadata = list(metadata)
@@ -468,7 +468,7 @@ def create_occurrence(
468468
)
469469

470470
request = grafeas_pb2.CreateOccurrenceRequest(
471-
parent=parent, occurrence=occurrence
471+
parent=parent, occurrence=occurrence,
472472
)
473473
if metadata is None:
474474
metadata = []
@@ -552,7 +552,7 @@ def batch_create_occurrences(
552552
)
553553

554554
request = grafeas_pb2.BatchCreateOccurrencesRequest(
555-
parent=parent, occurrences=occurrences
555+
parent=parent, occurrences=occurrences,
556556
)
557557
if metadata is None:
558558
metadata = []
@@ -641,7 +641,7 @@ def update_occurrence(
641641
)
642642

643643
request = grafeas_pb2.UpdateOccurrenceRequest(
644-
name=name, occurrence=occurrence, update_mask=update_mask
644+
name=name, occurrence=occurrence, update_mask=update_mask,
645645
)
646646
if metadata is None:
647647
metadata = []
@@ -717,7 +717,7 @@ def get_occurrence_note(
717717
client_info=self._client_info,
718718
)
719719

720-
request = grafeas_pb2.GetOccurrenceNoteRequest(name=name)
720+
request = grafeas_pb2.GetOccurrenceNoteRequest(name=name,)
721721
if metadata is None:
722722
metadata = []
723723
metadata = list(metadata)
@@ -791,7 +791,7 @@ def get_note(
791791
client_info=self._client_info,
792792
)
793793

794-
request = grafeas_pb2.GetNoteRequest(name=name)
794+
request = grafeas_pb2.GetNoteRequest(name=name,)
795795
if metadata is None:
796796
metadata = []
797797
metadata = list(metadata)
@@ -889,7 +889,7 @@ def list_notes(
889889
)
890890

891891
request = grafeas_pb2.ListNotesRequest(
892-
parent=parent, filter=filter_, page_size=page_size
892+
parent=parent, filter=filter_, page_size=page_size,
893893
)
894894
if metadata is None:
895895
metadata = []
@@ -972,7 +972,7 @@ def delete_note(
972972
client_info=self._client_info,
973973
)
974974

975-
request = grafeas_pb2.DeleteNoteRequest(name=name)
975+
request = grafeas_pb2.DeleteNoteRequest(name=name,)
976976
if metadata is None:
977977
metadata = []
978978
metadata = list(metadata)
@@ -1060,7 +1060,7 @@ def create_note(
10601060
)
10611061

10621062
request = grafeas_pb2.CreateNoteRequest(
1063-
parent=parent, note_id=note_id, note=note
1063+
parent=parent, note_id=note_id, note=note,
10641064
)
10651065
if metadata is None:
10661066
metadata = []
@@ -1143,7 +1143,7 @@ def batch_create_notes(
11431143
client_info=self._client_info,
11441144
)
11451145

1146-
request = grafeas_pb2.BatchCreateNotesRequest(parent=parent, notes=notes)
1146+
request = grafeas_pb2.BatchCreateNotesRequest(parent=parent, notes=notes,)
11471147
if metadata is None:
11481148
metadata = []
11491149
metadata = list(metadata)
@@ -1231,7 +1231,7 @@ def update_note(
12311231
)
12321232

12331233
request = grafeas_pb2.UpdateNoteRequest(
1234-
name=name, note=note, update_mask=update_mask
1234+
name=name, note=note, update_mask=update_mask,
12351235
)
12361236
if metadata is None:
12371237
metadata = []
@@ -1332,7 +1332,7 @@ def list_note_occurrences(
13321332
)
13331333

13341334
request = grafeas_pb2.ListNoteOccurrencesRequest(
1335-
name=name, filter=filter_, page_size=page_size
1335+
name=name, filter=filter_, page_size=page_size,
13361336
)
13371337
if metadata is None:
13381338
metadata = []

grafeas/grafeas/grafeas_v1/gapic/transports/grafeas_grpc_transport.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, address, scopes, channel=None, credentials=None):
4949
# exception (channels come with credentials baked in already).
5050
if channel is not None and credentials is not None:
5151
raise ValueError(
52-
"The `channel` and `credentials` arguments are mutually " "exclusive."
52+
"The `channel` and `credentials` arguments are mutually " "exclusive.",
5353
)
5454

5555
# Create the channel.
@@ -68,7 +68,9 @@ def __init__(self, address, scopes, channel=None, credentials=None):
6868

6969
# gRPC uses objects called "stubs" that are bound to the
7070
# channel and provide a basic method for each RPC.
71-
self._stubs = {"grafeas_stub": grafeas_pb2_grpc.GrafeasStub(channel)}
71+
self._stubs = {
72+
"grafeas_stub": grafeas_pb2_grpc.GrafeasStub(channel),
73+
}
7274

7375
@classmethod
7476
def create_channel(cls, address, scopes, credentials=None, **kwargs):

grafeas/grafeas/grafeas_v1/proto/attestation_pb2.py

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/build_pb2.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/deployment_pb2.py

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/discovery_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/grafeas_pb2.py

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/package_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)