Skip to content

Commit 6ad44a5

Browse files
committed
Fix lint errors caused by addition of (Optional).
Mostly, lines that were too long.
1 parent 3b33b99 commit 6ad44a5

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

packages/google-cloud-storage/google/cloud/storage/acl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ def _save(self, acl, predefined, client):
420420
current entries.
421421
422422
:type predefined: str
423-
:param predefined: (Optional) An identifier for a predefined ACL. Must be one
424-
of the keys in :attr:`PREDEFINED_JSON_ACLS`
425-
If passed, `acl` must be None.
423+
:param predefined:
424+
(Optional) An identifier for a predefined ACL. Must be one of the
425+
keys in :attr:`PREDEFINED_JSON_ACLS` If passed, `acl` must be None.
426426
427427
:type client: :class:`~google.cloud.storage.client.Client` or
428428
``NoneType``

packages/google-cloud-storage/google/cloud/storage/batch.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ def _do_request(self, method, url, headers, data, target_object):
155155
:param data: The data to send as the body of the request.
156156
157157
:type target_object: object
158-
:param target_object: (Optional) This allows us to enable custom behavior in our
159-
batch connection. Here we defer an HTTP request
160-
and complete initialization of the object at a
161-
later time.
158+
:param target_object:
159+
(Optional) This allows us to enable custom behavior in our batch
160+
connection. Here we defer an HTTP request and complete
161+
initialization of the object at a later time.
162162
163163
:rtype: tuple of ``response`` (a dictionary of sorts)
164164
and ``content`` (a string).

packages/google-cloud-storage/google/cloud/storage/client.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,15 +240,16 @@ def list_buckets(self, max_results=None, page_token=None, prefix=None,
240240
with this prefix.
241241
242242
:type projection: str
243-
:param projection: (Optional) If used, must be 'full' or 'noAcl'. Defaults to
244-
'noAcl'. Specifies the set of properties to return.
243+
:param projection:
244+
(Optional) Specifies the set of properties to return. If used, must
245+
be 'full' or 'noAcl'. Defaults to 'noAcl'.
245246
246247
:type fields: str
247-
:param fields: (Optional) Selector specifying which fields to include in a
248-
partial response. Must be a list of fields. For example
249-
to get a partial response with just the next page token
250-
and the language of each bucket returned:
251-
'items/id,nextPageToken'
248+
:param fields:
249+
(Optional) Selector specifying which fields to include in a partial
250+
response. Must be a list of fields. For example to get a partial
251+
response with just the next page token and the language of each
252+
bucket returned: 'items/id,nextPageToken'
252253
253254
:rtype: :class:`~google.cloud.iterator.Iterator`
254255
:returns: Iterator of all :class:`~google.cloud.storage.bucket.Bucket`

0 commit comments

Comments
 (0)