@@ -280,8 +280,8 @@ def from_stream(cls, stream, auto_transfer=True, total_size=None, **kwds):
280
280
:type stream: writable file-like object
281
281
:param stream: the target file
282
282
283
- :type total_size: int or None
284
- :param total_size: total size of the file to be downloaded
283
+ :type total_size: int
284
+ :param total_size: (Optional) total size of the file to be downloaded
285
285
286
286
:type auto_transfer: bool
287
287
:param auto_transfer: should the transfer be started immediately
@@ -457,8 +457,8 @@ def _compute_end_byte(self, start, end=None, use_chunks=True):
457
457
:type start: int
458
458
:param start: start byte of the range.
459
459
460
- :type end: int or None
461
- :param end: suggested last byte of the range.
460
+ :type end: int
461
+ :param end: (Optional) suggested last byte of the range.
462
462
463
463
:type use_chunks: bool
464
464
:param use_chunks: If False, ignore :attr:`chunksize`.
@@ -493,8 +493,8 @@ def _get_chunk(self, start, end):
493
493
:type start: int
494
494
:param start: start byte of the range.
495
495
496
- :type end: int or None
497
- :param end: end byte of the range.
496
+ :type end: int
497
+ :param end: (Optional) end byte of the range.
498
498
499
499
:rtype: :class:`google.cloud.streaming.http_wrapper.Response`
500
500
:returns: response from the chunk request.
@@ -555,8 +555,8 @@ def get_range(self, start, end=None, use_chunks=True):
555
555
:type start: int
556
556
:param start: Where to start fetching bytes. (See above.)
557
557
558
- :type end: int or ``None``
559
- :param end: Where to stop fetching bytes. (See above.)
558
+ :type end: int
559
+ :param end: (Optional) Where to stop fetching bytes. (See above.)
560
560
561
561
:type use_chunks: bool
562
562
:param use_chunks: If False, ignore :attr:`chunksize`
@@ -625,8 +625,8 @@ class Upload(_Transfer):
625
625
:type mime_type: str:
626
626
:param mime_type: MIME type of the upload.
627
627
628
- :type total_size: int or None
629
- :param total_size: Total upload size for the stream.
628
+ :type total_size: int
629
+ :param total_size: (Optional) Total upload size for the stream.
630
630
631
631
:type http: :class:`httplib2.Http` (or workalike)
632
632
:param http: Http instance used to perform requests.
@@ -669,8 +669,8 @@ def from_file(cls, filename, mime_type=None, auto_transfer=True, **kwds):
669
669
:type mime_type: str
670
670
:param mime_type: MIMEtype of the file being uploaded
671
671
672
- :type auto_transfer: bool or None
673
- :param auto_transfer: should the transfer be started immediately
672
+ :type auto_transfer: bool
673
+ :param auto_transfer: (Optional) should the transfer be started immediately
674
674
675
675
:type kwds: dict
676
676
:param kwds: keyword arguments: passed
@@ -700,11 +700,11 @@ def from_stream(cls, stream, mime_type,
700
700
:type mime_type: str
701
701
:param mime_type: MIMEtype of the file being uploaded
702
702
703
- :type total_size: int or None
704
- :param total_size: Size of the file being uploaded
703
+ :type total_size: int
704
+ :param total_size: (Optional) Size of the file being uploaded
705
705
706
- :type auto_transfer: bool or None
707
- :param auto_transfer: should the transfer be started immediately
706
+ :type auto_transfer: bool
707
+ :param auto_transfer: (Optional) should the transfer be started immediately
708
708
709
709
:type kwds: dict
710
710
:param kwds: keyword arguments: passed
@@ -784,8 +784,8 @@ def total_size(self):
784
784
def total_size (self , value ):
785
785
"""Update total size of the stream to be uploaded.
786
786
787
- :type value: int or None
788
- :param value: the size
787
+ :type value: int
788
+ :param value: (Optional) the size
789
789
"""
790
790
self ._ensure_uninitialized ()
791
791
self ._total_size = value
@@ -1048,8 +1048,8 @@ def _validate_chunksize(self, chunksize=None):
1048
1048
1049
1049
Helper for :meth:`stream_file`.
1050
1050
1051
- :type chunksize: int or None
1052
- :param chunksize: the chunk size to be tested.
1051
+ :type chunksize: int
1052
+ :param chunksize: (Optional) the chunk size to be tested.
1053
1053
1054
1054
:raises: :exc:`ValueError` if ``chunksize`` is not a multiple
1055
1055
of the server-specified granulariy.
0 commit comments