8000 Updating some Sphinx class links. · googleapis/google-cloud-python@69429ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 69429ae

Browse files
committed
Updating some Sphinx class links.
Follow-up to PR #2223. The Sphinx mechanism of using a `.` to mean "go find this class" can be confusing, so we make sure the `.` also is a relative path.
1 parent e407bfb commit 69429ae

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

google/cloud/datastore/batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def _assign_entity_to_pb(entity_pb, entity):
290290
291291
Helper method for ``Batch.put``.
292292
293-
:type entity_pb: :class:`.datastore._generated.entity_pb2.Entity`
293+
:type entity_pb: :class:`._generated.entity_pb2.Entity`
294294
:param entity_pb: The entity owned by a mutation.
295295
296296
:type entity: :class:`google.cloud.datastore.entity.Entity`

google/cloud/datastore/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _extended_lookup(connection, project, key_pbs,
7878
:type project: string
7979
:param project: The project to make the request for.
8080
81-
:type key_pbs: list of :class:`.datastore._generated.entity_pb2.Key`
81+
:type key_pbs: list of :class:`._generated.entity_pb2.Key`
8282
:param key_pbs: The keys to retrieve from the datastore.
8383
8484
:type missing: list

google/cloud/streaming/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def status_code(self):
5959
def from_response(cls, http_response):
6060
"""Factory: construct an exception from a response.
6161
62-
:type http_response: :class:`~.streaming.http_wrapper.Response`
62+
:type http_response: :class:`~.http_wrapper.Response`
6363
:param http_response: the response which returned the error
6464
6565
:rtype: :class:`HttpError`
@@ -108,7 +108,7 @@ def __init__(self, response, content, url, retry_after):
108108
def from_response(cls, http_response):
109109
"""Factory: construct an exception from a response.
110110
111-
:type http_response: :class:`~.streaming.http_wrapper.Response`
111+
:type http_response: :class:`~.http_wrapper.Response`
112112
:param http_response: the response which returned the error.
113113
114114
:rtype: :class:`RetryAfterError`

google/cloud/streaming/http_wrapper.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,9 @@ def _check_response(response):
273273
:param response: the response to validate
274274
275275
:raises: :exc:`google.cloud.streaming.exceptions.RequestError` if response
276-
is None, :exc:`~.streaming.exceptions.BadStatusCodeError` if
277-
response status code indicates an error, or
278-
:exc:`~.streaming.exceptions.RetryAfterError` if response
279-
indicates a retry interval.
276+
is None, :exc:`~.exceptions.BadStatusCodeError` if response status
277+
code indicates an error, or :exc:`~.exceptions.RetryAfterError`
278+
if response indicates a retry interval.
280279
"""
281280
if response is None:
282281
# Caller shouldn't call us if the response is None, but handle anyway.

0 commit comments

Comments
 (0)
0