mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-05 22:54:17 +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, Mapping
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from urllib3 import exceptions as urllib3_exceptions, poolmanager, response
|
||||
from urllib3.util import retry
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import sys
|
||||
from typing import Any, MutableMapping
|
||||
from collections.abc import MutableMapping
|
||||
from typing import Any
|
||||
|
||||
if sys.version_info >= (3, 0):
|
||||
from http.cookiejar import CookieJar
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import datetime
|
||||
from _typeshed import Self
|
||||
from collections.abc import Callable, Iterator
|
||||
from json import JSONDecoder
|
||||
from typing import Any, Callable, Iterator, TypeVar
|
||||
from typing import Any, TypeVar
|
||||
|
||||
from urllib3 import exceptions as urllib3_exceptions, fields, filepost, util
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import Self, SupportsItems
|
||||
from typing import IO, Any, Callable, Iterable, Mapping, MutableMapping, Union
|
||||
from collections.abc import Callable, Iterable, Mapping, MutableMapping
|
||||
from typing import IO, Any, Union
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from urllib3._collections import RecentlyUsedContainer
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Generic, Iterable, Iterator, Mapping, MutableMapping, TypeVar
|
||||
from collections.abc import Iterable, Iterator, Mapping, MutableMapping
|
||||
from typing import Any, Generic, TypeVar
|
||||
|
||||
_VT = TypeVar("_VT")
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, AnyStr, Iterable, Mapping
|
||||
from collections.abc import Iterable, Mapping
|
||||
from typing import Any, AnyStr
|
||||
|
||||
from . import compat, cookies, exceptions, structures
|
||||
|
||||
|
||||
Reference in New Issue
Block a user