from tornado.util import unicode_type
from tornado.web import RequestHandler
-from typing import Any, cast, Iterable, Union, Optional
+from typing import Any, cast, Union, Optional
+from collections.abc import Iterable
class AuthError(Exception):
import typing
from typing import (
- Mapping,
Union,
Any,
Callable,
List,
Type,
Tuple,
- Awaitable,
Dict,
- Sequence,
overload,
)
+from collections.abc import Mapping, Awaitable, Sequence
if typing.TYPE_CHECKING:
- from typing import Deque, Optional, Set, Iterable # noqa: F401
+ from typing import Deque, Optional, Set # noqa: F401
+ from collections.abc import Iterable
_T = typing.TypeVar("_T")
from tornado.util import GzipDecompressor
-from typing import cast, Optional, Type, Awaitable, Callable, Union
+from typing import cast, Optional, Type, Callable, Union
+from collections.abc import Awaitable
CR_OR_LF_RE = re.compile(b"\r|\n")
from tornado.ioloop import IOLoop
from tornado.util import Configurable
-from typing import Type, Any, Union, Callable, Optional, Awaitable, cast
+from typing import Type, Any, Union, Callable, Optional, cast
+from collections.abc import Awaitable
class HTTPClient:
from tornado.util import Configurable
import typing
-from typing import Union, Any, Callable, Optional, Awaitable
+from typing import Union, Any, Callable, Optional
+from collections.abc import Awaitable
if typing.TYPE_CHECKING:
from typing import Set # noqa: F401
import typing
from typing import (
- Iterable,
- Mapping,
- Iterator,
- Awaitable,
- Generator,
AnyStr,
)
+from collections.abc import Iterable, Mapping, Iterator, Awaitable, Generator
if typing.TYPE_CHECKING:
from typing import Deque # noqa: F401
from tornado.util import Configurable, TimeoutError, import_object
import typing
-from typing import Any, Callable, TypeVar, Awaitable
+from typing import Any, Callable, TypeVar
+from collections.abc import Awaitable
if typing.TYPE_CHECKING:
from typing import Dict, List, Set, TypedDict # noqa: F401
from typing import (
Union,
Optional,
- Awaitable,
Callable,
- Pattern,
Any,
TypeVar,
)
+from collections.abc import Awaitable
+from re import Pattern
from types import TracebackType
if typing.TYPE_CHECKING:
from tornado._locale_data import LOCALE_NAMES
-from typing import Iterable, Any
+from typing import Any
+from collections.abc import Iterable
_default_locale = "en_US"
_translations: dict[str, Any] = {}
from tornado import gen, ioloop
from tornado.concurrent import Future, future_set_result_unless_cancelled
-from typing import Union, Optional, Type, Any, Awaitable
+from typing import Union, Optional, Type, Any
+from collections.abc import Awaitable
import typing
if typing.TYPE_CHECKING:
from tornado.ioloop import IOLoop
from tornado.util import Configurable, errno_from_exception
-from typing import Callable, Any, Union, Awaitable, Optional
+from typing import Callable, Any, Union, Optional
+from collections.abc import Awaitable
# Note that the naming of ssl.Purpose is confusing; the purpose
# of a context is to authenticate the opposite side of the connection.
from typing import (
Any,
- Iterator,
- Iterable,
Callable,
TextIO,
Optional,
)
+from collections.abc import Iterator, Iterable
class Error(Exception):
import typing
if typing.TYPE_CHECKING:
- from typing import Generator, Any, List, Tuple, Dict # noqa: F401
+ from typing import Any, List, Tuple, Dict # noqa: F401
+ from collections.abc import Generator
class CaresResolver(Resolver):
from tornado.concurrent import Future, future_set_result_unless_cancelled
from tornado.locks import Event
-from typing import TypeVar, Generic, Awaitable
+from typing import TypeVar, Generic
+from collections.abc import Awaitable
import typing
if typing.TYPE_CHECKING:
Any,
Union,
Optional,
- Awaitable,
- Pattern,
overload,
- Sequence,
)
+from collections.abc import Awaitable, Sequence
+from re import Pattern
class Router(httputil.HTTPServerConnectionDelegate):
from io import BytesIO
import urllib.parse
-from typing import Any, Callable, Optional, Type, Union, Awaitable
+from typing import Any, Callable, Optional, Type, Union
+from collections.abc import Awaitable
from types import TracebackType
import typing
from tornado.netutil import Resolver
from tornado.gen import TimeoutError
-from typing import Any, Union, Tuple, Callable, Iterator, Optional
+from typing import Any, Union, Tuple, Callable, Optional
+from collections.abc import Iterator
if typing.TYPE_CHECKING:
from typing import Set # noqa(F401)
from tornado.util import errno_from_exception
import typing
-from typing import Union, Any, Iterable, Optional, Awaitable
+from typing import Union, Any, Optional
+from collections.abc import Iterable, Awaitable
if typing.TYPE_CHECKING:
from typing import Callable, List # noqa: F401
from tornado.log import app_log
from tornado.util import ObjectDict, exec_in, unicode_type
-from typing import Any, Union, Callable, Iterable, Optional, TextIO
+from typing import Any, Union, Callable, Optional, TextIO
+from collections.abc import Iterable
import typing
if typing.TYPE_CHECKING:
from tornado.web import Application
import typing
-from typing import Any, Callable, Type, Union, Optional, Coroutine
+from typing import Any, Callable, Type, Union, Optional
+from collections.abc import Coroutine
from types import TracebackType
if typing.TYPE_CHECKING:
from typing import (
Any,
- Mapping,
- Match,
Callable,
- Sequence,
)
+from collections.abc import Mapping, Sequence
+from re import Match
if typing.TYPE_CHECKING:
# Additional imports only used in type comments.
Any,
Union,
Optional,
- Awaitable,
Callable,
- Iterable,
- Generator,
Type,
TypeVar,
cast,
overload,
)
+from collections.abc import Awaitable, Iterable, Generator
from types import TracebackType
import typing
Any,
Optional,
Union,
- Awaitable,
Callable,
Type,
)
+from collections.abc import Awaitable
from types import TracebackType
if TYPE_CHECKING: