Skip to content

Commit

Permalink
Replace string with str in rtypes.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tswast committed Oct 20, 2016
1 parent 9a5e79a commit a6f94a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit a6f94a7

Please sign in to comment.