Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Feb 16, 2023
1 parent eb9229d commit 65cd10a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tornado/ioloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def make_current(self) -> None:
)
self._make_current()

def _make_current(self):
def _make_current(self) -> None:
# The asyncio event loops override this method.
raise NotImplementedError()

Expand Down
2 changes: 1 addition & 1 deletion tornado/platform/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def close(self, all_fds: bool = False) -> None:
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()
Expand Down
1 change: 0 additions & 1 deletion tornado/test/testing_test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 65cd10a

Please sign in to comment.