diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index dc815c0..09dc6b8 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -106,13 +106,14 @@ def _default_client(): return "ZulipPython/" + __version__ def add_default_arguments(parser, patch_error_handling=True, allow_provisioning=False): - # type: (argparse.ArgumentParser) -> argparse.ArgumentParser + # type: (argparse.ArgumentParser, bool, bool) -> argparse.ArgumentParser if patch_error_handling: def custom_error_handling(self, message): + # type: (Any, str) -> None self.print_help(sys.stderr) self.exit(2, '{}: error: {}\n'.format(self.prog, message)) - parser.error = types.MethodType(custom_error_handling, parser) + parser.error = types.MethodType(custom_error_handling, parser) # type: ignore if allow_provisioning: parser.add_argument('--provision', diff --git a/zulip/zulip/send.py b/zulip/zulip/send.py index 72e3999..a5375e3 100755 --- a/zulip/zulip/send.py +++ b/zulip/zulip/send.py @@ -52,7 +52,7 @@ def do_send_message(client, message_data): return False def main(): - # type: (Optional[List[str]]) -> int + # type: () -> int usage = """zulip-send [options] [recipient...] Sends a message to specified recipients.