-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entity creation type safety #819
Comments
Thanks for the pointer to the discussion! I'm torn on this. Getting bit by passing in a string as an iterable is somewhat of a rite of passage in Python (as we saw, the user misunderstood the |
I'm not partial either way, just wanted to pass it on. |
Got it. Thanks. @tseaver WDYT? |
One extra thought -- Maybe it should be an error if you provide properties to exclude_from_indexes that you never actually store in the entity. It could indicate bad application logic. |
When do we decide the |
In this instance probably on put. |
Right now, if you create an entity like:
The unindexable properties will be 'd', 'a', or 't'. Obviously in this case the user meant to specify:
Perhaps the Entity constructor should verify that exclude_from_indexes is a list or tuple.
Here is the discussion where the user ran into this: https://groups.google.com/forum/#!topic/gcd-discuss/rqwF8CRdTAY
The text was updated successfully, but these errors were encountered: