diff --git a/datastore/google/cloud/datastore/client.py b/datastore/google/cloud/datastore/client.py index d1091e119a67..fc4a107022ee 100644 --- a/datastore/google/cloud/datastore/client.py +++ b/datastore/google/cloud/datastore/client.py @@ -167,10 +167,10 @@ class Client(ClientWithProject): >>> client = datastore.Client() :type project: str - :param project: (optional) The project to pass to proxied API methods. + :param project: (Optional) The project to pass to proxied API methods. :type namespace: str - :param namespace: (optional) namespace to pass to proxied API methods. + :param namespace: (Optional) namespace to pass to proxied API methods. :type credentials: :class:`~google.auth.credentials.Credentials` :param credentials: (Optional) The OAuth2 Credentials to use for this @@ -346,9 +346,8 @@ def get_multi(self, keys, missing=None, deferred=None, :type eventual: bool :param eventual: (Optional) Defaults to strongly consistent (False). - Setting True will use eventual consistency, - but cannot be used inside a transaction or - will raise ValueError. + Setting True will use eventual consistency, but cannot + be used inside a transaction or will raise ValueError. :rtype: list of :class:`google.cloud.datastore.entity.Entity` :returns: The requested entities. diff --git a/datastore/google/cloud/datastore/helpers.py b/datastore/google/cloud/datastore/helpers.py index 942819403a7f..f3838668fe3d 100644 --- a/datastore/google/cloud/datastore/helpers.py +++ b/datastore/google/cloud/datastore/helpers.py @@ -19,6 +19,9 @@ import datetime import itertools + +from google.protobuf import struct_pb2 +from google.type import latlng_pb2 import six from google.cloud._helpers import _datetime_to_pb_timestamp @@ -28,9 +31,6 @@ from google.cloud.datastore.entity import Entity from google.cloud.datastore.key import Key -from google.protobuf import struct_pb2 -from google.type import latlng_pb2 - def _get_meaning(value_pb, is_list=False): """Get the meaning from a protobuf value.