Skip to content

Commit bb79664

Browse files
committed
Fix lint errors caused by addition of (Optional).
Mostly, lines that were too long.
1 parent 9ad4564 commit bb79664

5 files changed

Lines changed: 23 additions & 15 deletions

File tree

packages/google-cloud-core/google/cloud/connection.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ def _make_request(self, method, url, data=None, content_type=None,
215215
:param headers: A dictionary of HTTP headers to send with the request.
216216
217217
:type target_object: object
218-
:param target_object: (Optional) Argument to be used by library callers.
219-
This can allow custom behavior, for example, to
220-
defer an HTTP request and complete initialization
221-
of the object at a later time.
218+
:param target_object:
219+
(Optional) Argument to be used by library callers. This can allow
220+
custom behavior, for example, to defer an HTTP request and complete
221+
initialization of the object at a later time.
222222
223223
:rtype: tuple of ``response`` (a dictionary of sorts)
224224
and ``content`` (a string).
@@ -262,8 +262,9 @@ def _do_request(self, method, url, headers, data,
262262
:param data: The data to send as the body of the request.
263263
264264
:type target_object: object
265-
:param target_object: (Optional) Unused ``target_object`` here but may be used
266-
by a superclass.
265+
:param target_object:
266+
(Optional) Unused ``target_object`` here but may be used by a
267+
superclass.
267268
268269
:rtype: tuple of ``response`` (a dictionary of sorts)
269270
and ``content`` (a string).
@@ -324,10 +325,10 @@ def api_request(self, method, path, query_params=None,
324325
that cannot be done. Default is True.
325326
326327
:type _target_object: :class:`object`
327-
:param _target_object: (Optional) Protected argument to be used by library
328-
callers. This can allow custom behavior, for
329-
example, to defer an HTTP request and complete
330-
initialization of the object at a later time.
328+
:param _target_object:
329+
(Optional) Protected argument to be used by library callers. This
330+
can allow custom behavior, for example, to defer an HTTP request
331+
and complete initialization of the object at a later time.
331332
332333
:raises: Exception if the response code is not 200 OK.
333334
:rtype: dict or str

packages/google-cloud-core/google/cloud/streaming/buffered_stream.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def read(self, size=None):
8282
"""Read bytes from the buffer.
8383
8484
:type size: int
85-
:param size: (Optional) How many bytes to read (defaults to all remaining bytes).
85+
:param size:
86+
(Optional) How many bytes to read (defaults to all remaining
87+
bytes).
8688
8789
:rtype: str
8890
:returns: The data read from the stream.

packages/google-cloud-core/google/cloud/streaming/http_wrapper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def _httplib2_debug_level(http_request, level, http=None):
8181
:param level: the debuglevel for logging.
8282
8383
:type http: :class:`httplib2.Http`
84-
:param http: (Optional) the instance on whose connections to set the debuglevel.
84+
:param http:
85+
(Optional) the instance on whose connections to set the debuglevel.
8586
"""
8687
if http_request.loggable_body is None:
8788
yield

packages/google-cloud-core/google/cloud/streaming/stream_slice.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ def read(self, size=None):
6666
raise :exc:`IncompleteRead`.
6767
6868
:type size: int
69-
:param size: (Optional) If provided, read no more than size bytes from the stream.
69+
:param size:
70+
(Optional) If provided, read no more than size bytes from the
71+
stream.
7072
7173
:rtype: bytes
7274
:returns: bytes read from this slice.

packages/google-cloud-core/google/cloud/streaming/transfer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,8 @@ def from_file(cls, filename, mime_type=None, auto_transfer=True, **kwds):
670670
:param mime_type: MIMEtype of the file being uploaded
671671
672672
:type auto_transfer: bool
673-
:param auto_transfer: (Optional) should the transfer be started immediately
673+
:param auto_transfer:
674+
(Optional) should the transfer be started immediately
674675
675676
:type kwds: dict
676677
:param kwds: keyword arguments: passed
@@ -704,7 +705,8 @@ def from_stream(cls, stream, mime_type,
704705
:param total_size: (Optional) Size of the file being uploaded
705706
706707
:type auto_transfer: bool
707-
:param auto_transfer: (Optional) should the transfer be started immediately
708+
:param auto_transfer:
709+
(Optional) should the transfer be started immediately
708710
709711
:type kwds: dict
710712
:param kwds: keyword arguments: passed

0 commit comments

Comments
 (0)