mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
mypy: Remove type: ignores not needed in Python 3.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user