From 65cd10a883c55bedb6ff0772ec2d6503ec39fcbe Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Thu, 16 Feb 2023 13:22:59 +0000 Subject: [PATCH] Linter fixes --- tornado/ioloop.py | 2 +- tornado/platform/asyncio.py | 2 +- tornado/test/testing_test.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) 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 -- 2.47.2