Skip to content

Commit 85b190e

Browse files
authored
cosmetic changes to address #4343 (#4376)
1 parent 16b3638 commit 85b190e

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

datastore/google/cloud/datastore/client.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ class Client(ClientWithProject):
167167
>>> client = datastore.Client()
168168
169169
:type project: str
170-
:param project: (optional) The project to pass to proxied API methods.
170+
:param project: (Optional) The project to pass to proxied API methods.
171171
172172
:type namespace: str
173-
:param namespace: (optional) namespace to pass to proxied API methods.
173+
:param namespace: (Optional) namespace to pass to proxied API methods.
174174
175175
:type credentials: :class:`~google.auth.credentials.Credentials`
176176
:param credentials: (Optional) The OAuth2 Credentials to use for this
@@ -346,9 +346,8 @@ def get_multi(self, keys, missing=None, deferred=None,
346346
347347
:type eventual: bool
348348
:param eventual: (Optional) Defaults to strongly consistent (False).
349-
Setting True will use eventual consistency,
350-
but cannot be used inside a transaction or
351-
will raise ValueError.
349+
Setting True will use eventual consistency, but cannot
350+
be used inside a transaction or will raise ValueError.
352351
353352
:rtype: list of :class:`google.cloud.datastore.entity.Entity`
354353
:returns: The requested entities.

datastore/google/cloud/datastore/helpers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
import datetime
2121
import itertools
22+
23+
from google.protobuf import struct_pb2
24+
from google.type import latlng_pb2
2225
import six
2326

2427
from google.cloud._helpers import _datetime_to_pb_timestamp
@@ -28,9 +31,6 @@
2831
from google.cloud.datastore.entity import Entity
2932
from google.cloud.datastore.key import Key
3033

31-
from google.protobuf import struct_pb2
32-
from google.type import latlng_pb2
33-
3434

3535
def _get_meaning(value_pb, is_list=False):
3636
"""Get the meaning from a protobuf value.

0 commit comments

Comments
 (0)