mypy: Remove unused type: ignore comments.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
5b5fda2354
commit
30f241a126
7 changed files with 10 additions and 8 deletions
|
@ -14,7 +14,7 @@ class TestDefaultArguments(TestCase):
|
|||
|
||||
def test_invalid_arguments(self) -> None:
|
||||
parser = zulip.add_default_arguments(argparse.ArgumentParser(usage="lorem ipsum"))
|
||||
with self.assertRaises(SystemExit) as cm: # type: ignore # error: "assertRaises" doesn't match argument types
|
||||
with self.assertRaises(SystemExit) as cm:
|
||||
with patch('sys.stderr', new=io.StringIO()) as mock_stderr:
|
||||
parser.parse_args(['invalid argument'])
|
||||
self.assertEqual(cm.exception.code, 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue