From a6f94a7826d1e849df5b190c6894ff56a03f3fdb Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Thu, 20 Oct 2016 15:34:03 -0700 Subject: [PATCH] Replace string with str in rtypes. Used the command: ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g' Based on this comment: https://github.com/GoogleCloudPlatform/google-cloud-python/pull/2485#discussion_r83267163 `str` is a type, `string` is a module. --- .../google-cloud-monitoring/google/cloud/monitoring/group.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring/group.py b/packages/google-cloud-monitoring/google/cloud/monitoring/group.py index a708a579ba52..dec34f888604 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring/group.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring/group.py @@ -45,7 +45,7 @@ def _group_id_from_name(path, project=None): :param project: The project associated with the request. It is included for validation purposes. - :rtype: string + :rtype: str :returns: Group ID parsed from ``path``. :raises: :class:`ValueError` if the ``path`` is ill-formed or if the project from the ``path`` does not agree with the @@ -63,7 +63,7 @@ def _group_name_from_id(project, group_id): :type group_id: string :param group_id: The group ID. - :rtype: string + :rtype: str :returns: The fully qualified name of the group. """ return 'projects/{project}/groups/{group_id}'.format(