Skip to content

Commit c92e40d

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 bc7dd05 commit c92e40d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def group(self, group_id=None, display_name=None, parent_id=None,
447447
The filter string used to determine which monitored resources
448448
belong to this group.
449449
450-
:type is_cluster: boolean
450+
:type is_cluster: bool
451451
:param is_cluster:
452452
If true, the members of this group are considered to be a cluster.
453453
The system can perform additional analysis on groups that are

packages/google-cloud-monitoring/google/cloud/monitoring/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Group(object):
9292
The filter string used to determine which monitored resources belong to
9393
this group.
9494
95-
:type is_cluster: boolean
95+
:type is_cluster: bool
9696
:param is_cluster:
9797
If true, the members of this group are considered to be a cluster. The
9898
system can perform additional analysis on groups that are clusters.

packages/google-cloud-monitoring/google/cloud/monitoring/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def iter(self, headers_only=False, page_size=None):
442442
for timeseries in query.iter():
443443
...
444444
445-
:type headers_only: boolean
445+
:type headers_only: bool
446446
:param headers_only:
447447
Whether to omit the point data from the time series objects.
448448
@@ -505,7 +505,7 @@ def _build_query_params(self, headers_only=False,
505505
We use a series of key-value pairs (suitable for passing to
506506
``urlencode``) instead of a ``dict`` to allow for repeated fields.
507507
508-
:type headers_only: boolean
508+
:type headers_only: bool
509509
:param headers_only:
510510
Whether to omit the point data from the
511511
:class:`~google.cloud.monitoring.timeseries.TimeSeries` objects.

0 commit comments

Comments
 (0)