Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b18887

Browse files
committed
Replace rtypes boolean with bool.
Uses the command: ag -l 'rtype: boolean' | xargs sed -i .bak 's/rtype: boolean/rtype: bool/g'
1 parent c5ded2a commit 7b18887

File tree

11 files changed

+17
-17
lines changed

11 files changed

+17
-17
lines changed

bigquery/google/cloud/bigquery/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def cache_hit(self):
118118
See:
119119
https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#cacheHit
120120
121-
:rtype: boolean or ``NoneType``
121+
:rtype: bool or ``NoneType``
122122
:returns: True if the query results were served from cache (None
123123
until set by the server).
124124
"""
@@ -131,7 +131,7 @@ def complete(self):
131131
See:
132132
https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#jobComplete
133133
134-
:rtype: boolean or ``NoneType``
134+
:rtype: bool or ``NoneType``
135135
:returns: True if the query completed on the server (None
136136
until set by the server).
137137
"""

core/google/cloud/iterator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def next(self):
345345
def _has_next_page(self):
346346
"""Determines whether or not there are more pages with results.
347347
348-
:rtype: boolean
348+
:rtype: bool
349349
:returns: Whether the iterator has more pages.
350350
"""
351351
if self.page_number == 0:

core/google/cloud/streaming/buffered_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __len__(self):
5555
def stream_exhausted(self):
5656
"""Does the stream have bytes remaining beyond the buffer
5757
58-
:rtype: boolean
58+
:rtype: bool
5959
:returns: Boolean indicating if the stream is exhausted.
6060
"""
6161
return self._stream_at_end

core/google/cloud/streaming/http_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def retry_after(self):
258258
def is_redirect(self):
259259
"""Does this response contain a redirect
260260
261-
:rtype: boolean
261+
:rtype: bool
262262
:returns: True if the status code indicates a redirect and the
263263
'location' header is present.
264264
"""

core/google/cloud/streaming/transfer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def __repr__(self):
9393
def close_stream(self):
9494
"""Should this instance close the stream when deleted.
9595
96-
:rtype: boolean
96+
:rtype: bool
9797
:returns: Boolean indicated if the stream should be closed.
9898
"""
9999
return self._close_stream
@@ -190,7 +190,7 @@ def _initialize(self, http, url):
190190
def initialized(self):
191191
"""Has the instance been initialized
192192
193-
:rtype: boolean
193+
:rtype: bool
194194
:returns: Boolean indicating if the current transfer
195195
has been initialized.
196196
"""
@@ -723,7 +723,7 @@ def from_stream(cls, stream, mime_type,
723723
def complete(self):
724724
"""Has the entire stream been uploaded.
725725
726-
:rtype: boolean
726+
:rtype: bool
727727
:returns: Boolean indicated if the upload is complete.
728728
"""
729729
return self._complete

core/google/cloud/streaming/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def acceptable_mime_type(accept_patterns, mime_type):
5353
:type mime_type: str
5454
:param mime_type: the MIME being checked
5555
56-
:rtype: boolean
56+
:rtype: bool
5757
:returns: True if the supplied MIME type matches at least one of the
5858
patterns, else False.
5959
"""

datastore/google/cloud/datastore/entity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __eq__(self, other):
9191
Entities compare equal if their keys compare equal and their
9292
properties compare equal.
9393
94-
:rtype: boolean
94+
:rtype: bool
9595
:returns: True if the entities compare equal, else False.
9696
"""
9797
if not isinstance(other, Entity):
@@ -108,7 +108,7 @@ def __ne__(self, other):
108108
Entities compare equal if their keys compare equal and their
109109
properties compare equal.
110110
111-
:rtype: boolean
111+
:rtype: bool
112112
:returns: False if the entities compare equal, else True.
113113
"""
114114
return not self.__eq__(other)

datastore/google/cloud/datastore/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def to_protobuf(self):
452452
def __eq__(self, other):
453453
"""Compare two geo points for equality.
454454
455-
:rtype: boolean
455+
:rtype: bool
456456
:returns: True if the points compare equal, else False.
457457
"""
458458
if not isinstance(other, GeoPoint):
@@ -464,7 +464,7 @@ def __eq__(self, other):
464464
def __ne__(self, other):
465465
"""Compare two geo points for inequality.
466466
467-
:rtype: boolean
467+
:rtype: bool
468468
:returns: False if the points compare equal, else True.
469469
"""
470470
return not self.__eq__(other)

storage/google/cloud/storage/acl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def has_entity(self, entity):
258258
:type entity: :class:`_ACLEntity`
259259
:param entity: The entity to check for existence in this ACL.
260260
261-
:rtype: boolean
261+
:rtype: bool
262262
:returns: True of the entity exists in the ACL.
263263
"""
264264
self._ensure_loaded()

storage/google/cloud/storage/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def exists(self, client=None):
254254
:param client: Optional. The client to use. If not passed, falls back
255255
to the ``client`` stored on the blob's bucket.
256256
257-
:rtype: boolean
257+
:rtype: bool
258258
:returns: True if the blob exists in Cloud Storage.
259259
"""
260260
client = self._require_client(client)

0 commit comments

Comments
 (0)