File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2323import signal
2424import sys
2525import time
26- from typing import Any , Sequence , cast
26+ from typing import Callable , Sequence , Tuple
2727
2828from tornado .ioloop import IOLoop
2929from tornado .web import Application
@@ -182,7 +182,7 @@ def _log_request(handler):
182182 )
183183
184184
185- handler_mapping = [
185+ handler_mapping : Sequence [ Tuple [ str , Callable , dict | None ]] = [
186186 (r'^/$' , MainHandler ),
187187 (r'^/manifest.json$' , ManifestHandler ),
188188 (r'^/config/main/(?P<op>set|get)/?$' , ConfigHandler ),
@@ -406,7 +406,7 @@ def parse_options(parser, args):
406406
407407def make_app (debug : bool = False ) -> Application :
408408 return Application (
409- cast ( Sequence [ Any ], handler_mapping ) ,
409+ handler_mapping ,
410410 debug = debug ,
411411 log_function = _log_request ,
412412 static_path = settings .STATIC_PATH ,
You can’t perform that action at this time.
0 commit comments