Fix several new errors caught by mypy 0.501.

Clear out a bunch of easy to review errors, so we can focus on the more
complicated ones.
This commit is contained in:
Rishi Gupta 2017-03-03 11:30:49 -08:00
parent 6c47fa77b6
commit 94871fea76
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ def main(argv=None):
if not do_send_message(client, message_data): if not do_send_message(client, message_data):
return 1 return 1
return 0
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main()) sys.exit(main())

View file

@ -87,7 +87,7 @@ def format_commit_lines(web_url, repo, base, tip):
return "\n".join(summary for summary in commit_summaries) return "\n".join(summary for summary in commit_summaries)
def send_zulip(email, api_key, site, stream, subject, content): def send_zulip(email, api_key, site, stream, subject, content):
# type: (str, str, str, str, str, Text) -> str # type: (str, str, str, str, str, Text) -> None
""" """
Send a message to Zulip using the provided credentials, which should be for Send a message to Zulip using the provided credentials, which should be for
a bot in most cases. a bot in most cases.