From 83640ed0cdc05ddf6cb8e325e7e17b31ae4ca7b6 Mon Sep 17 00:00:00 2001 From: Eklavya Sharma Date: Tue, 5 Jul 2016 08:27:03 +0530 Subject: [PATCH] runtornado.py: Ignore due to incorrect stubs. --- tools/run-mypy | 1 - zerver/management/commands/runtornado.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/run-mypy b/tools/run-mypy index 72e9628926..6267de010f 100755 --- a/tools/run-mypy +++ b/tools/run-mypy @@ -41,7 +41,6 @@ exclude_py2 = [] exclude_py3 = """ zerver/lib/ccache.py -zerver/management/commands/runtornado.py zerver/tests/test_i18n.py zerver/views/messages.py zerver/views/webhooks/beanstalk.py diff --git a/zerver/management/commands/runtornado.py b/zerver/management/commands/runtornado.py index 7ae7b368a4..e64059ca45 100644 --- a/zerver/management/commands/runtornado.py +++ b/zerver/management/commands/runtornado.py @@ -60,8 +60,8 @@ class Command(BaseCommand): def handle(self, addrport, **options): # type: (str, **bool) -> None # setup unbuffered I/O - sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) - sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0) + sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) # type: ignore # https://github.com/python/typeshed/pull/337 + sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0) # type: ignore # https://github.com/python/typeshed/pull/337 interactive_debug_listen() import django