mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-19 23:09:55 +08:00
Third-party stubs: import from collections.abc where possible (#7637)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from typing import Any, MutableMapping, NoReturn, TypeVar
|
||||
from collections.abc import MutableMapping
|
||||
from typing import Any, NoReturn, TypeVar
|
||||
|
||||
_KT = TypeVar("_KT")
|
||||
_VT = TypeVar("_VT")
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import ssl
|
||||
import sys
|
||||
from typing import IO, Any, Iterable
|
||||
from collections.abc import Iterable
|
||||
from typing import IO, Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from . import exceptions, util
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import io
|
||||
from _typeshed import Self
|
||||
from collections.abc import Iterator, Mapping
|
||||
from http.client import HTTPMessage as _HttplibHTTPMessage, HTTPResponse as _HttplibHTTPResponse
|
||||
from typing import Any, Iterator, Mapping
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
|
||||
from urllib3.connectionpool import HTTPConnection
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import logging
|
||||
from _typeshed import Self
|
||||
from collections.abc import Collection
|
||||
from types import TracebackType
|
||||
from typing import Any, ClassVar, Collection, NamedTuple
|
||||
from typing import Any, ClassVar, NamedTuple
|
||||
from typing_extensions import Literal
|
||||
|
||||
from .. import exceptions
|
||||
|
||||
Reference in New Issue
Block a user