From f124531a885bacc10dd2873b9ef0f3b651a6c858 Mon Sep 17 00:00:00 2001 From: Jordan Gedney Date: Mon, 22 May 2017 13:09:11 -0400 Subject: [PATCH] mypy: Add type: ignores for optparse.OptionGroup. Typeshed has already fixed this upstream (Description is optional) --- bin/zulip-send | 2 +- bots/jabber_mirror_backend.py | 2 +- zulip/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/zulip-send b/bin/zulip-send index d85b47c..ba28cb0 100755 --- a/bin/zulip-send +++ b/bin/zulip-send @@ -78,7 +78,7 @@ def main(argv=None): parser.add_option('-m', '--message', help='Specifies the message to send, prevents interactive prompting.') - group = optparse.OptionGroup(parser, 'Stream parameters') + group = optparse.OptionGroup(parser, 'Stream parameters') # type: ignore # https://github.com/python/typeshed/pull/1248 group.add_option('-s', '--stream', dest='stream', action='store', diff --git a/bots/jabber_mirror_backend.py b/bots/jabber_mirror_backend.py index 1ca3830..f35adbb 100755 --- a/bots/jabber_mirror_backend.py +++ b/bots/jabber_mirror_backend.py @@ -360,7 +360,7 @@ option does not affect login credentials.'''.replace("\n", " ")) const=logging.DEBUG, default=logging.INFO) - jabber_group = optparse.OptionGroup(parser, "Jabber configuration") + jabber_group = optparse.OptionGroup(parser, "Jabber configuration") # type: ignore # https://github.com/python/typeshed/pull/1248 jabber_group.add_option( '--jid', default=None, diff --git a/zulip/__init__.py b/zulip/__init__.py index 0f427a2..a63b2e1 100644 --- a/zulip/__init__.py +++ b/zulip/__init__.py @@ -105,7 +105,7 @@ def _default_client(): def generate_option_group(parser, prefix=''): # type: (optparse.OptionParser, str) -> optparse.OptionGroup - group = optparse.OptionGroup(parser, 'Zulip API configuration') + group = optparse.OptionGroup(parser, 'Zulip API configuration') # type: ignore # https://github.com/python/typeshed/pull/1248 group.add_option('--%ssite' % (prefix,), dest="zulip_site", help="Zulip server URI",