Skip to content

Commit 9038ef1

Browse files
authored
Merge pull request #2580 from tswast/int-not-integer
Replaces integer with int in types and rtypes.
2 parents 2a2f3c2 + 7615b51 commit 9038ef1

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _write_buffer_to_hash(buffer_object, hash_obj, digest_block_size=8192):
151151
:type hash_obj: object that implements update
152152
:param hash_obj: A hash object (MD5 or CRC32-C).
153153
154-
:type digest_block_size: integer
154+
:type digest_block_size: int
155155
:param digest_block_size: The block size to write to the hash.
156156
Defaults to 8192.
157157
"""

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Blob(_PropertyMixin):
5757
:type bucket: :class:`google.cloud.storage.bucket.Bucket`
5858
:param bucket: The bucket to which this blob belongs.
5959
60-
:type chunk_size: integer
60+
:type chunk_size: int
6161
:param chunk_size: The size of a chunk of data whenever iterating (1 MB).
6262
This must be a multiple of 256 KB per the API
6363
specification.
@@ -85,7 +85,7 @@ def __init__(self, name, bucket, chunk_size=None, encryption_key=None):
8585
def chunk_size(self):
8686
"""Get the blob's default chunk size.
8787
88-
:rtype: integer or ``NoneType``
88+
:rtype: int or ``NoneType``
8989
:returns: The current blob's chunk size, if it is set.
9090
"""
9191
return self._chunk_size
@@ -94,7 +94,7 @@ def chunk_size(self):
9494
def chunk_size(self, value):
9595
"""Set the blob's default chunk size.
9696
97-
:type value: integer or ``NoneType``
97+
:type value: int or ``NoneType``
9898
:param value: The current blob's chunk size, if it is set.
9999
100100
:raises: :class:`ValueError` if ``value`` is not ``None`` and is not a
@@ -453,7 +453,7 @@ def upload_from_file(self, file_obj, rewind=False, size=None,
453453
:type content_type: str or ``NoneType``
454454
:param content_type: Optional type of content being uploaded.
455455
456-
:type num_retries: integer
456+
:type num_retries: int
457457
:param num_retries: Number of upload retries. Defaults to 6.
458458
459459
:type client: :class:`~google.cloud.storage.client.Client` or
@@ -773,7 +773,7 @@ def component_count(self):
773773
774774
See: https://cloud.google.com/storage/docs/json_api/v1/objects
775775
776-
:rtype: integer or ``NoneType``
776+
:rtype: int or ``NoneType``
777777
:returns: The component count (in case of a composed object) or
778778
``None`` if the property is not set locally. This property
779779
will not be set on objects not created via ``compose``.
@@ -800,7 +800,7 @@ def generation(self):
800800
801801
See: https://cloud.google.com/storage/docs/json_api/v1/objects
802802
803-
:rtype: integer or ``NoneType``
803+
:rtype: int or ``NoneType``
804804
:returns: The generation of the blob or ``None`` if the property
805805
is not set locally.
806806
"""
@@ -872,7 +872,7 @@ def metageneration(self):
872872
873873
See: https://cloud.google.com/storage/docs/json_api/v1/objects
874874
875-
:rtype: integer or ``NoneType``
875+
:rtype: int or ``NoneType``
876876
:returns: The metageneration of the blob or ``None`` if the property
877877
is not set locally.
878878
"""
@@ -910,7 +910,7 @@ def size(self):
910910
911911
See: https://cloud.google.com/storage/docs/json_api/v1/objects
912912
913-
:rtype: integer or ``NoneType``
913+
:rtype: int or ``NoneType``
914914
:returns: The size of the blob or ``None`` if the property
915915
is not set locally.
916916
"""

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def blob(self, blob_name, chunk_size=None, encryption_key=None):
111111
:type blob_name: str
112112
:param blob_name: The name of the blob to be instantiated.
113113
114-
:type chunk_size: integer
114+
:type chunk_size: int
115115
:param chunk_size: The size of a chunk of data whenever iterating
116116
(1 MB). This must be a multiple of 256 KB per the
117117
API specification.
@@ -626,7 +626,7 @@ def metageneration(self):
626626
627627
See: https://cloud.google.com/storage/docs/json_api/v1/buckets
628628
629-
:rtype: integer or ``NoneType``
629+
:rtype: int or ``NoneType``
630630
:returns: The metageneration of the bucket or ``None`` if the property
631631
is not set locally.
632632
"""
@@ -652,7 +652,7 @@ def project_number(self):
652652
653653
See: https://cloud.google.com/storage/docs/json_api/v1/buckets
654654
655-
:rtype: integer or ``NoneType``
655+
:rtype: int or ``NoneType``
656656
:returns: The project number that owns the bucket or ``None`` if the
657657
property is not set locally.
658658
"""

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def list_buckets(self, max_results=None, page_token=None, prefix=None,
227227
228228
This implements "storage.buckets.list".
229229
230-
:type max_results: integer or ``NoneType``
230+
:type max_results: int or ``NoneType``
231231
:param max_results: Optional. Maximum number of buckets to return.
232232
233233
:type page_token: str or ``NoneType``

0 commit comments

Comments
 (0)