Skip to content

Commit b6b4d85

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 b0368d4 commit b6b4d85

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

google/cloud/dns/changes.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _set_properties(self, resource):
7474
def path(self):
7575
"""URL path for change set APIs.
7676
77-
:rtype: string
77+
:rtype: str
7878
:returns: the path based on project, zone, and change set names.
7979
"""
8080
return '/projects/%s/managedZones/%s/changes/%s' % (
@@ -84,7 +84,7 @@ def path(self):
8484
def name(self):
8585
"""Name of the change set.
8686
87-
:rtype: string or ``NoneType``
87+
:rtype: str or ``NoneType``
8888
:returns: Name, as set by the back-end, or None.
8989
"""
9090
return self._properties.get('id')
@@ -104,7 +104,7 @@ def name(self, value):
104104
def status(self):
105105
"""Status of the change set.
106106
107-
:rtype: string or ``NoneType``
107+
:rtype: str or ``NoneType``
108108
:returns: Status, as set by the back-end, or None.
109109
"""
110110
return self._properties.get('status')

google/cloud/dns/zone.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def from_api_repr(cls, resource, client):
8181
def project(self):
8282
"""Project bound to the zone.
8383
84-
:rtype: string
84+
:rtype: str
8585
:returns: the project (derived from the client).
8686
"""
8787
return self._client.project
@@ -90,7 +90,7 @@ def project(self):
9090
def path(self):
9191
"""URL path for the zone's APIs.
9292
93-
:rtype: string
93+
:rtype: str
9494
:returns: the path based on project and dataste name.
9595
"""
9696
return '/projects/%s/managedZones/%s' % (self.project, self.name)
@@ -117,7 +117,7 @@ def name_servers(self):
117117
def zone_id(self):
118118
"""ID for the zone resource.
119119
120-
:rtype: string, or ``NoneType``
120+
:rtype: str, or ``NoneType``
121121
:returns: the ID (None until set from the server).
122122
"""
123123
return self._properties.get('id')
@@ -126,7 +126,7 @@ def zone_id(self):
126126
def description(self):
127127
"""Description of the zone.
128128
129-
:rtype: string, or ``NoneType``
129+
:rtype: str, or ``NoneType``
130130
:returns: The description as set by the user, or None (the default).
131131
"""
132132
return self._properties.get('description')
@@ -153,7 +153,7 @@ def name_server_set(self):
153153
See:
154154
https://cloud.google.com/dns/api/v1/managedZones#nameServerSet
155155
156-
:rtype: string, or ``NoneType``
156+
:rtype: str, or ``NoneType``
157157
:returns: The name as set by the user, or None (the default).
158158
"""
159159
return self._properties.get('nameServerSet')

0 commit comments

Comments
 (0)