From: Thomas Kluyver Date: Thu, 16 Feb 2023 13:22:59 +0000 (+0000) Subject: Linter fixes X-Git-Tag: v6.3.0b1~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3223%2Fhead;p=thirdparty%2Ftornado.git Linter fixes --- diff --git a/tornado/ioloop.py b/tornado/ioloop.py index bea2ca0b2..bcdcca097 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -305,7 +305,7 @@ class IOLoop(Configurable): ) self._make_current() - def _make_current(self): + def _make_current(self) -> None: # The asyncio event loops override this method. raise NotImplementedError() diff --git a/tornado/platform/asyncio.py b/tornado/platform/asyncio.py index a9fa89004..a15a74df4 100644 --- a/tornado/platform/asyncio.py +++ b/tornado/platform/asyncio.py @@ -327,7 +327,7 @@ class AsyncIOLoop(BaseAsyncIOLoop): self._clear_current() super().close(all_fds=all_fds) - def _make_current(self): + def _make_current(self) -> None: if not self.is_current: try: self.old_asyncio = asyncio.get_event_loop() diff --git a/tornado/test/testing_test.py b/tornado/test/testing_test.py index cdbf1a3ae..0429feee8 100644 --- a/tornado/test/testing_test.py +++ b/tornado/test/testing_test.py @@ -1,7 +1,6 @@ from tornado import gen, ioloop from tornado.httpserver import HTTPServer from tornado.locks import Event -from tornado.test.util import ignore_deprecation from tornado.testing import AsyncHTTPTestCase, AsyncTestCase, bind_unused_port, gen_test from tornado.web import Application import asyncio