Skip to content

Commit cb1b6f2

Browse files
authored
Merge pull request #2579 from tswast/str-not-string
Replace types string with str.
2 parents 5bfc3eb + cf123c1 commit cb1b6f2

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • packages/google-cloud-error-reporting/google/cloud/error_reporting

packages/google-cloud-error-reporting/google/cloud/error_reporting/client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ class HTTPContext(object):
2424
"""HTTPContext defines an object that captures the parameter for the
2525
httpRequest part of Error Reporting API
2626
27-
:type method: string
27+
:type method: str
2828
:param method: The type of HTTP request, such as GET, POST, etc.
2929
30-
:type url: string
30+
:type url: str
3131
:param url: The URL of the request
3232
33-
:type user_agent: string
33+
:type user_agent: str
3434
:param user_agent: The user agent information that is provided with the
3535
request.
3636
37-
:type referrer: string
37+
:type referrer: str
3838
:param referrer: The referrer information that is provided with the
3939
request.
4040
4141
:type response_status_code: int
4242
:param response_status_code: The HTTP response status code for the request.
4343
44-
:type remote_ip: string
44+
:type remote_ip: str
4545
:param remote_ip: The IP address from which the request originated. This
4646
can be IPv4, IPv6, or a token which is derived from
4747
the IP address, depending on the data that has been
@@ -65,7 +65,7 @@ class Client(object):
6565
"""Error Reporting client. Currently Error Reporting is done by creating
6666
a Logging client.
6767
68-
:type project: string
68+
:type project: str
6969
:param project: the project which the client acts on behalf of. If not
7070
passed falls back to the default inferred from the
7171
environment.
@@ -125,7 +125,7 @@ def _send_error_report(self, message,
125125
126126
https://cloud.google.com/error-reporting/docs/formatting-error-messages
127127
128-
:type message: string
128+
:type message: str
129129
:param message: The stack trace that was reported or logged by the
130130
service.
131131
@@ -143,7 +143,7 @@ def _send_error_report(self, message,
143143
:param http_context: The HTTP request which was processed when the
144144
error was triggered.
145145
146-
:type user: string
146+
:type user: str
147147
:param user: The user who caused or was affected by the crash. This can
148148
be a user ID, an email address, or an arbitrary token that
149149
uniquely identifies the user. When sending an error
@@ -194,7 +194,7 @@ def report(self, message, http_context=None, user=None):
194194
:param http_context: The HTTP request which was processed when the
195195
error was triggered.
196196
197-
:type user: string
197+
:type user: str
198198
:param user: The user who caused or was affected by the crash. This
199199
can be a user ID, an email address, or an arbitrary
200200
token that uniquely identifies the user. When sending
@@ -230,7 +230,7 @@ def report_exception(self, http_context=None, user=None):
230230
:param http_context: The HTTP request which was processed when the
231231
error was triggered.
232232
233-
:type user: string
233+
:type user: str
234234
:param user: The user who caused or was affected by the crash. This
235235
can be a user ID, an email address, or an arbitrary
236236
token that uniquely identifies the user. When sending an

0 commit comments

Comments
 (0)