Skip to content

Commit d11baf2

Browse files
committed
Updating some Sphinx class links.
Follow-up to PR googleapis#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 570cf29 commit d11baf2

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
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: 4 additions & 4 deletions
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
@@ -100,7 +100,7 @@ def _extended_lookup(connection, project, key_pbs,
100100
the given transaction. Incompatible with
101101
``eventual==True``.
102102
103-
:rtype: list of :class:`.datastore._generated.entity_pb2.Entity`
103+
:rtype: list of :class:`._generated.entity_pb2.Entity`
104104
:returns: The requested entities.
105105
:raises: :class:`ValueError` if missing / deferred are not null or
106106
empty list.
@@ -245,7 +245,7 @@ def get(self, key, missing=None, deferred=None, transaction=None):
245245
:param deferred: (Optional) If a list is passed, the keys returned
246246
by the backend as "deferred" will be copied into it.
247247
248-
:type transaction: :class:`~.datastore.transaction.Transaction`
248+
:type transaction: :class:`~.transaction.Transaction`
249249
:param transaction: (Optional) Transaction to use for read consistency.
250250
If not passed, uses current transaction, if set.
251251
@@ -273,7 +273,7 @@ def get_multi(self, keys, missing=None, deferred=None, transaction=None):
273273
by the backend as "deferred" will be copied into it.
274274
If the list is not empty, an error will occur.
275275
276-
:type transaction: :class:`~.datastore.transaction.Transaction`
276+
:type transaction: :class:`~.transaction.Transaction`
277277
:param transaction: (Optional) Transaction to use for read consistency.
278278
If not passed, uses current transaction, if set.
279279

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)