Skip to content

Commit

Permalink
Note discrepancy btwn protobuf spec and current implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Jan 5, 2015
1 parent 4645b72 commit 72a9520
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit 72a9520

Please sign in to comment.