Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.8k
Large number of style-related changes to pass pylint#238
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| """GCloud API access in idiomatic Python.""" | ||
| __version__ = '0.02.2' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -23,7 +23,7 @@ class NoKey(RuntimeError): | ||
| """Exception raised by Entity methods which require a key.""" | ||
| class Entity(dict): # pylint: disable=too-many-public-methods | ||
| class Entity(dict): | ||
| """:type dataset: :class:`gcloud.datastore.dataset.Dataset` | ||
| :param dataset: The dataset in which this entity belongs. | ||
| @@ -95,7 +95,9 @@ def key(self, key=None): | ||
| :type key: :class:`glcouddatastore.key.Key` | ||
| :param key: The key you want to set on the entity. | ||
| :returns: Either the current key or the :class:`Entity`. | ||
| :rtype: :class:`gcloud.datastore.key.Key` or :class:`Entity`. | ||
| :returns: Either the current key (on get) or the current | ||
| object (on set). | ||
| >>> entity.key(my_other_key) # This returns the original entity. | ||
| <Entity[{'kind': 'OtherKeyKind', 'id': 1234}] {'property': 'value'}> | ||
| @@ -141,7 +143,7 @@ def from_key(cls, key): | ||
| return cls().key(key) | ||
| @classmethod | ||
| def from_protobuf(cls, pb, dataset=None): # pylint: disable=invalid-name | ||
| def from_protobuf(cls, pb, dataset=None): | ||
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page.
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page. | ||
| """Factory method for creating an entity based on a protobuf. | ||
| The protobuf should be one returned from the Cloud Datastore | ||
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.