-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix pylint for the main package #3658
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
Conversation
This reverts commit 768d667.
:raises: Exception if the response code is not 200 OK. | ||
:raises ~google.cloud.exceptions.GoogleCloudError: if the response code | ||
is not 200 OK. | ||
:raises TypeError: if the response content type is not JSON. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
from __future__ import absolute_import | ||
|
||
|
||
class _Monkey(object): | ||
# context-manager for replacing module names in the scope of a test. | ||
"""Context-manager for replacing module names in the scope of a test.""" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -68,8 +66,12 @@ def _tempdir_mgr(): | |||
return _tempdir_mgr | |||
|
|||
|
|||
# pylint: disable=invalid-name | |||
# Retain _tempdir as a constant for backwards compatibility despite |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -64,7 +64,7 @@ def from_service_account_json(cls, json_credentials_path, *args, **kwargs): | |||
|
|||
:rtype: :class:`_ClientFactoryMixin` | |||
:returns: The client created with the retrieved JSON credentials. | |||
:raises: :class:`TypeError` if there is a conflict with the kwargs | |||
:raises TypeError: if there is a conflict with the kwargs | |||
and the credentials created by the factory. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -242,7 +242,8 @@ def _page_iter(self, increment): | |||
results per page while an items iterator will want | |||
to increment per item. | |||
|
|||
Yields :class:`Page` instances. | |||
:rtype: :class:`Page` | |||
:returns: pages |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
NOTE: Pylint is still failing against tests, I have a longer-term strategy to address this which I'll propose later.