Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit ba063b0

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: googleapis/google-cloud-python#2485 (comment) `str` is a type, `string` is a module.
1 parent 0b0fa35 commit ba063b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/monitoring/group.py

+2-2
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)