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.
This commit is contained in:
neiljp (Neil Pilgrim) 2017-12-20 20:56:43 -08:00 committed by showell
parent 134b94e630
commit 7d493d64c5

View file

@ -34,16 +34,12 @@ class GenerateManifest(distutils.cmd.Command):
# type: () -> None # type: () -> None
if self.release: if self.release:
generate_release_manifest() generate_release_manifest()
self.announce( # type: ignore # https://github.com/zulip/python-zulip-api/issues/142 self.announce('Generating a MANIFEST for a PyPA release of zulip_bots.',
'Generating a MANIFEST for a PyPA release of zulip_bots.', level=distutils.log.INFO)
level=distutils.log.INFO # type: ignore # https://github.com/zulip/python-zulip-api/issues/142
)
else: else:
generate_dev_manifest() generate_dev_manifest()
self.announce( # type: ignore # https://github.com/zulip/python-zulip-api/issues/142 self.announce('Generating a MANIFEST for zulip_bots\' development.',
'Generating a MANIFEST for zulip_bots\' development.', level=distutils.log.INFO)
level=distutils.log.INFO # type: ignore # https://github.com/zulip/python-zulip-api/issues/142
)
def get_test_fixtures(): def get_test_fixtures():
# type: () -> Iterator[str] # type: () -> Iterator[str]