]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Linter fixes 3223/head
authorThomas Kluyver <thomas@kluyver.me.uk>
Thu, 16 Feb 2023 13:22:59 +0000 (13:22 +0000)
committerThomas Kluyver <thomas@kluyver.me.uk>
Thu, 16 Feb 2023 13:22:59 +0000 (13:22 +0000)
tornado/ioloop.py
tornado/platform/asyncio.py
tornado/test/testing_test.py

index bea2ca0b2c710fe30864cae1164ce85ecc293f46..bcdcca097be90560952e1dde6dd2bfe809bebba0 100644 (file)
@@ -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()
 
index a9fa890047b704ed102061440c1a9d14fb4d7d9a..a15a74df4d3bc47f66c38ae07d68e1785fec7935 100644 (file)
@@ -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()
index cdbf1a3ae778291196060d08caecf4ad2880995b..0429feee8308fc4d02c6bb209650a10c94d56c70 100644 (file)
@@ -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