mypy: Remove ignores for a few typeshed bugs fixed upstream.

This commit is contained in:
Tim Abbott 2017-10-27 17:09:00 -07:00
parent bfa148ab39
commit 0d1194811f
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ log.addHandler(logging.handlers.SysLogHandler(facility=logging.handlers.SysLogHa
log.addHandler(logging.StreamHandler()) log.addHandler(logging.StreamHandler())
log.info("Starting.") 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()] ids = [int(macdata['device-number']) for macdata in macs.values()]
ifaces = [iface for iface in netifaces.interfaces() if ":" not in iface and iface != "lo"] ifaces = [iface for iface in netifaces.interfaces() if ":" not in iface and iface != "lo"]

View File

@ -19,5 +19,5 @@ except IndexError:
sys.exit(1) sys.exit(1)
p = pstats.Stats(fn) p = pstats.Stats(fn)
p.strip_dirs().sort_stats('cumulative').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) # type: ignore # stats stubs are broken p.strip_dirs().sort_stats('time').print_stats(25)