from tornado.log import app_log
from tornado.util import basestring_type, import_object, re_unescape, unicode_type
-from typing import Any, Union, Optional, Awaitable, List, Dict, Pattern, Tuple, overload
+from typing import Any, Union, Optional, Awaitable, List, Dict, Pattern, Tuple, overload, Sequence
class Router(httputil.HTTPServerConnectionDelegate):
# _RuleList can either contain pre-constructed Rules or a sequence of
# arguments to be passed to the Rule constructor.
-_RuleList = List[
+_RuleList = Sequence[
Union[
"Rule",
List[Any], # Can't do detailed typechecking of lists.