From 94871fea765ef38d4c8ce431b834bd3b3733d768 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Fri, 3 Mar 2017 11:30:49 -0800 Subject: [PATCH] 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. --- bin/zulip-send | 2 +- integrations/hg/zulip-changegroup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/zulip-send b/bin/zulip-send index 5d3adbd..d85b47c 100755 --- a/bin/zulip-send +++ b/bin/zulip-send @@ -122,7 +122,7 @@ def main(argv=None): if not do_send_message(client, message_data): return 1 - + return 0 if __name__ == '__main__': sys.exit(main()) diff --git a/integrations/hg/zulip-changegroup.py b/integrations/hg/zulip-changegroup.py index c0bb9ca..21dc923 100755 --- a/integrations/hg/zulip-changegroup.py +++ b/integrations/hg/zulip-changegroup.py @@ -87,7 +87,7 @@ def format_commit_lines(web_url, repo, base, tip): return "\n".join(summary for summary in commit_summaries) 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 a bot in most cases.