mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 02:42:29 +08:00
Third-party stubs: import from collections.abc where possible (#7637)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from collections.abc import Iterable, Sequence
|
||||
from socket import socket
|
||||
from typing import Any, Iterable, Sequence
|
||||
from typing import Any
|
||||
|
||||
from .compat import HAS_IPV6 as HAS_IPV6, PY2 as PY2, WIN as WIN, string_types as string_types
|
||||
from .proxy_headers import PROXY_HEADERS as PROXY_HEADERS
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from collections.abc import Callable
|
||||
from io import BufferedIOBase, BufferedRandom, BytesIO
|
||||
from typing import Any, Callable
|
||||
from typing import Any
|
||||
|
||||
COPY_BYTES: int
|
||||
STRBUF_LIMIT: int
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from collections.abc import Mapping, Sequence
|
||||
from socket import socket
|
||||
from threading import Condition, Lock
|
||||
from typing import Mapping, Sequence
|
||||
|
||||
from waitress.adjustments import Adjustments
|
||||
from waitress.buffers import OverflowableBuffer
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from collections.abc import Mapping, Sequence
|
||||
from io import BytesIO
|
||||
from typing import Any, Mapping, Pattern, Sequence
|
||||
from typing import Any, Pattern
|
||||
|
||||
from waitress.adjustments import Adjustments
|
||||
from waitress.receiver import ChunkedReceiver, FixedStreamReceiver
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from collections.abc import Callable, Mapping, Sequence
|
||||
from logging import Logger
|
||||
from typing import Any, Callable, Mapping, NamedTuple, Sequence
|
||||
from typing import Any, NamedTuple
|
||||
|
||||
from .utilities import BadRequest as BadRequest
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from collections.abc import Callable, Sequence
|
||||
from io import TextIOWrapper
|
||||
from typing import Any, Callable, Pattern, Sequence
|
||||
from typing import Any, Pattern
|
||||
|
||||
HELP: str
|
||||
RUNNER_PATTERN: Pattern[Any]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from collections.abc import Sequence
|
||||
from socket import socket
|
||||
from typing import Any, Sequence
|
||||
from typing import Any
|
||||
|
||||
from waitress.adjustments import Adjustments
|
||||
from waitress.channel import HTTPChannel
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
from collections import deque
|
||||
from collections.abc import Mapping, Sequence
|
||||
from logging import Logger
|
||||
from threading import Condition, Lock
|
||||
from typing import Any, Mapping, Sequence
|
||||
from typing import Any
|
||||
|
||||
from .channel import HTTPChannel
|
||||
from .utilities import Error
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
from collections.abc import Callable, Mapping
|
||||
from socket import socket
|
||||
from threading import Lock
|
||||
from typing import Callable, Mapping
|
||||
from typing_extensions import Literal
|
||||
|
||||
from . import wasyncore as wasyncore
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from collections.abc import Callable, Mapping, Sequence
|
||||
from logging import Logger
|
||||
from typing import Any, Callable, Mapping, Match, Pattern, Sequence
|
||||
from typing import Any, Match, Pattern
|
||||
|
||||
from .rfc7230 import OBS_TEXT as OBS_TEXT, VCHAR as VCHAR
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
from collections.abc import Callable, Mapping
|
||||
from io import BytesIO
|
||||
from logging import Logger
|
||||
from socket import socket
|
||||
from typing import Any, Callable, Mapping
|
||||
from typing import Any
|
||||
|
||||
from . import compat as compat, utilities as utilities
|
||||
|
||||
|
||||
Reference in New Issue
Block a user