From 0d1194811ff0492ad98a7ca5fb6b85dc249e0084 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 27 Oct 2017 17:09:00 -0700 Subject: [PATCH] mypy: Remove ignores for a few typeshed bugs fixed upstream. --- puppet/zulip_ops/files/zulip-ec2-configure-interfaces | 2 +- tools/show-profile-results | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/puppet/zulip_ops/files/zulip-ec2-configure-interfaces b/puppet/zulip_ops/files/zulip-ec2-configure-interfaces index 8d8dfcf6ea..f44e245010 100755 --- a/puppet/zulip_ops/files/zulip-ec2-configure-interfaces +++ b/puppet/zulip_ops/files/zulip-ec2-configure-interfaces @@ -81,7 +81,7 @@ log.addHandler(logging.handlers.SysLogHandler(facility=logging.handlers.SysLogHa log.addHandler(logging.StreamHandler()) log.info("Starting.") -macs = boto.utils.get_instance_metadata()["network"]["interfaces"]["macs"] # type: ignore # boto.utils has no stubs +macs = boto.utils.get_instance_metadata()["network"]["interfaces"]["macs"] ids = [int(macdata['device-number']) for macdata in macs.values()] ifaces = [iface for iface in netifaces.interfaces() if ":" not in iface and iface != "lo"] diff --git a/tools/show-profile-results b/tools/show-profile-results index ee07cbe678..0ac294cc4f 100755 --- a/tools/show-profile-results +++ b/tools/show-profile-results @@ -19,5 +19,5 @@ except IndexError: sys.exit(1) p = pstats.Stats(fn) -p.strip_dirs().sort_stats('cumulative').print_stats(25) # type: ignore # stats stubs are broken -p.strip_dirs().sort_stats('time').print_stats(25) # type: ignore # stats stubs are broken +p.strip_dirs().sort_stats('cumulative').print_stats(25) +p.strip_dirs().sort_stats('time').print_stats(25)