]> git.ipfire.org Git - thirdparty/tornado.git/commit
*: Remove most typing.TYPE_CHECKING guards and F401 noqa comments
authorBen Darnell <ben@bendarnell.com>
Thu, 19 Mar 2026 19:03:46 +0000 (15:03 -0400)
committerBen Darnell <ben@bendarnell.com>
Thu, 19 Mar 2026 22:33:18 +0000 (18:33 -0400)
commitb4e805147af27354ff4f65ed910ce498ae2f1f20
tree88d0ce85d8c5618cbfc0ff79c5493708a06e864c
parenta93139b452c92c249316fff2cdbea4ff766dd0ba
*: Remove most typing.TYPE_CHECKING guards and F401 noqa comments

Flake8 now understands type annotations and no longer emits
"unused import" warnings for type imports. Most imports that
were previously behind TYPE_CHECKING guards are no longer
needed, or can be moved to unguarded imports.
32 files changed:
tornado/curl_httpclient.py
tornado/gen.py
tornado/httpserver.py
tornado/httputil.py
tornado/ioloop.py
tornado/iostream.py
tornado/locks.py
tornado/platform/caresresolver.py
tornado/platform/twisted.py
tornado/process.py
tornado/queues.py
tornado/simple_httpclient.py
tornado/tcpclient.py
tornado/tcpserver.py
tornado/template.py
tornado/test/escape_test.py
tornado/test/gen_test.py
tornado/test/http1connection_test.py
tornado/test/httpclient_test.py
tornado/test/httpserver_test.py
tornado/test/ioloop_test.py
tornado/test/locks_test.py
tornado/test/options_test.py
tornado/test/routing_test.py
tornado/test/simple_httpclient_test.py
tornado/test/tcpclient_test.py
tornado/test/template_test.py
tornado/testing.py
tornado/util.py
tornado/web.py
tornado/websocket.py
tornado/wsgi.py