diff --git a/certbot/cli/cli_utils.py b/certbot/cli/cli_utils.py index b536a02f3..eaf55bcbc 100644 --- a/certbot/cli/cli_utils.py +++ b/certbot/cli/cli_utils.py @@ -8,9 +8,9 @@ from certbot import constants from certbot import interfaces from certbot import util from certbot import errors -import zope.interface # pylint: disable=unused-import, no-name-in-module +import zope.interface.interface from acme.magic_typing import Any, Dict, Optional # pylint: enable=unused-import, no-name-in-module diff --git a/certbot/tests/helpful_test.py b/certbot/tests/helpful_test.py index 917ed2aec..2bc2a2014 100644 --- a/certbot/tests/helpful_test.py +++ b/certbot/tests/helpful_test.py @@ -99,16 +99,14 @@ class TestAddGroup(unittest.TestCase): # The user request help on run. A topic that given somewhere in the # args won't be added to the groups in the parser. arg_parser = HelpfulArgumentParser(['--help', 'run'], {}) - new_group = arg_parser.add_group("auth", + arg_parser.add_group("auth", description="description of auth") - self.assertIs(new_group._topic, "auth") self.assertEqual(arg_parser.groups, {}) def test_add_group_topic_requested_help(self): arg_parser = HelpfulArgumentParser(['--help', 'run'], {}) - new_group = arg_parser.add_group("run", + arg_parser.add_group("run", description="description of run") - self.assertIs(new_group._topic, "run") self.assertTrue(arg_parser.groups["run"]) arg_parser.add_group("certonly", description="description of certonly") with self.assertRaises(KeyError):