-
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
PEP257 Clean-up of docstrings. #1996
Conversation
@@ -439,8 +441,7 @@ def _to_bytes(value, encoding='ascii'): | |||
:rtype: str / bytes | |||
:returns: The original value converted to bytes (if unicode) or as passed | |||
in if it started out as bytes. | |||
:raises: :class:`TypeError <exceptions.TypeError>` if the value | |||
could not be converted to bytes. | |||
:raises TypeError: if the value could not be converted to bytes. |
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.
Fixes all Pylint failures of - missing-returns-doc - redundant-returns-doc - ungrouped-imports Also makes a little headway on missing-raises-doc though it's unclear if this error should be fixed. Towards googleapis#1968.
This is because the false positive was fixed in Pylint 1.6.4.
a76c130
to
8ee5e03
Compare
@tseaver FYI I added another commit since |
@tseaver Issues remaining? |
LGTM |
Fixes all Pylint failures of
missing-returns-doc
redundant-returns-doc
ungrouped-imports
Also makes a little headway on
missing-raises-doc
though it's unclear if this error should be fixed. Also pylint-dev/pylint@8d35557 makes the badcatching-non-exception
go away.Towards #1968.