Skip to content
Prev Previous commit
Next Next commit
Note discrepancy btwn protobuf spec and current implementation.
  • Loading branch information
tseaver committed Jan 5, 2015
commit 72a9520e48a4e30cf8cd6976b66d94497a9cf661
8 changes: 8 additions & 0 deletions gcloud/datastore/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@ def kind(self, value):

:type value: string
:param value: updated kind for the query.

.. note::

The protobuf specification allows for ``kind`` to be repeated,
but the current implementation returns an error if more than
one value is passed. If the back-end changes in the future to
allow multiple values, this method will be updated to allow passing
either a string or a sequence of strings.
"""
if not isinstance(value, str):
raise TypeError("Kind must be a string")
Expand Down