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