From ddb05ea7eb71aae0349410d81cec75b4f36c0813 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 18 Apr 2020 16:07:29 -0700 Subject: [PATCH] add_default_arguments: Correct custom_error_handling type annotation. Signed-off-by: Anders Kaseorg --- zulip/zulip/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index d8469cd..9a0124e 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -89,7 +89,7 @@ def add_default_arguments(parser, patch_error_handling=True, allow_provisioning= if patch_error_handling: def custom_error_handling(self, message): - # type: (Any, str) -> None + # type: (argparse.ArgumentParser, str) -> None self.print_help(sys.stderr) self.exit(2, '{}: error: {}\n'.format(self.prog, message)) parser.error = types.MethodType(custom_error_handling, parser) # type: ignore # patching function