Skip to content

Commit ed11195

Browse files
committed
Replace types boolean with bool.
Uses the command: ag -l 'type ([^:]+): boolean' | \ xargs gsed -r -i.bak -e 's/type ([^:]+): boolean/type \1: bool/g'
1 parent b212e2f commit ed11195

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def upload_from_file(self, file_obj, rewind=False, size=None,
440440
:type file_obj: file
441441
:param file_obj: A file handle open for reading.
442442
443-
:type rewind: boolean
443+
:type rewind: bool
444444
:param rewind: If True, seek to the beginning of the file handle before
445445
writing the file to Cloud Storage.
446446

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def delete(self, force=False, client=None):
331331
is to prevent accidental bucket deletion and to prevent extremely long
332332
runtime of this method.
333333
334-
:type force: boolean
334+
:type force: bool
335335
:param force: If True, empties the bucket's objects then deletes it.
336336
337337
:type client: :class:`~google.cloud.storage.client.Client` or
@@ -793,11 +793,11 @@ def make_public(self, recursive=False, future=False, client=None):
793793
objects / blobs this will cowardly refuse to make the objects public.
794794
This is to prevent extremely long runtime of this method.
795795
796-
:type recursive: boolean
796+
:type recursive: bool
797797
:param recursive: If True, this will make all blobs inside the bucket
798798
public as well.
799799
800-
:type future: boolean
800+
:type future: bool
801801
:param future: If True, this will make all objects created in the
802802
future public as well.
803803

0 commit comments

Comments
 (0)