From 7d493d64c547b3582966566631ebcc0b89ca005c Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Wed, 20 Dec 2017 20:56:43 -0800 Subject: [PATCH] mypy: Remove type ignore in generate_manifest.py and simplify. mypy 0.560 incorporates PR python/typeshed#1748, allowing extended type-checking of cmd and log components of distutils such as this. --- zulip_bots/generate_manifest.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/zulip_bots/generate_manifest.py b/zulip_bots/generate_manifest.py index cc13eb0..3faaa69 100755 --- a/zulip_bots/generate_manifest.py +++ b/zulip_bots/generate_manifest.py @@ -34,16 +34,12 @@ class GenerateManifest(distutils.cmd.Command): # type: () -> None if self.release: generate_release_manifest() - self.announce( # type: ignore # https://github.com/zulip/python-zulip-api/issues/142 - 'Generating a MANIFEST for a PyPA release of zulip_bots.', - level=distutils.log.INFO # type: ignore # https://github.com/zulip/python-zulip-api/issues/142 - ) + self.announce('Generating a MANIFEST for a PyPA release of zulip_bots.', + level=distutils.log.INFO) else: generate_dev_manifest() - self.announce( # type: ignore # https://github.com/zulip/python-zulip-api/issues/142 - 'Generating a MANIFEST for zulip_bots\' development.', - level=distutils.log.INFO # type: ignore # https://github.com/zulip/python-zulip-api/issues/142 - ) + self.announce('Generating a MANIFEST for zulip_bots\' development.', + level=distutils.log.INFO) def get_test_fixtures(): # type: () -> Iterator[str]