Skip to content

Commit a6f94a7

Browse files
committed
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: #2485 (comment) `str` is a type, `string` is a module.
1 parent 9a5e79a commit a6f94a7

File tree

1 file changed

+2
-2
lines changed
  • packages/google-cloud-monitoring/google/cloud/monitoring

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _group_id_from_name(path, project=None):
4545
:param project: The project associated with the request. It is
4646
included for validation purposes.
4747
48-
:rtype: string
48+
:rtype: str
4949
:returns: Group ID parsed from ``path``.
5050
:raises: :class:`ValueError` if the ``path`` is ill-formed or if
5151
the project from the ``path`` does not agree with the
@@ -63,7 +63,7 @@ def _group_name_from_id(project, group_id):
6363
:type group_id: string
6464
:param group_id: The group ID.
6565
66-
:rtype: string
66+
:rtype: str
6767
:returns: The fully qualified name of the group.
6868
"""
6969
return 'projects/{project}/groups/{group_id}'.format(

0 commit comments

Comments
 (0)