Skip to content

Commit cc68f3b

Browse files
tswastcojenco
authored andcommitted
Replace integer with int in types.
Uses the command: ag -l 'type ([^:]+): integer' | \ xargs gsed -r -i.bak -e 's/type ([^:]+): integer/type \1: int/g'
1 parent f6afa78 commit cc68f3b

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

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
"""

google/cloud/storage/blob.py

Lines changed: 3 additions & 3 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.
@@ -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

google/cloud/storage/bucket.py

Lines changed: 1 addition & 1 deletion
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.

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)