mypy: Remove type: ignores not needed in Python 3.

This commit is contained in:
Tim Abbott
2017-08-25 11:01:20 -07:00
parent 55f0555c8d
commit b8e7369dee
18 changed files with 31 additions and 64 deletions

View File

@@ -180,7 +180,7 @@ def stdout_suppressed():
"""Redirect stdout to /dev/null."""
with open(os.devnull, 'a') as devnull:
stdout, sys.stdout = sys.stdout, devnull # type: ignore # monkey-patching
stdout, sys.stdout = sys.stdout, devnull
yield stdout
sys.stdout = stdout