Third-party stubs: import from collections.abc where possible (#7637)

This commit is contained in:
Alex Waygood
2022-04-16 14:52:57 +01:00
committed by GitHub
parent ee09d9eb19
commit 653f2c6ba4
146 changed files with 268 additions and 156 deletions
+2 -1
View File
@@ -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")
+2 -1
View File
@@ -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
+2 -1
View File
@@ -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
+2 -1
View File
@@ -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