mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 01:38:40 +08:00
Remove or move several TypeAlias declarations (#8444)
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
import ssl
|
||||
from builtins import ConnectionError as ConnectionError
|
||||
from collections.abc import Iterable
|
||||
from http.client import HTTPConnection as _HTTPConnection, HTTPException as HTTPException
|
||||
from typing import IO, Any
|
||||
from typing_extensions import TypeAlias
|
||||
from typing import Any
|
||||
|
||||
from . import exceptions, util
|
||||
from .packages import ssl_match_hostname
|
||||
from .util import ssl_
|
||||
|
||||
_TYPE_BODY: TypeAlias = bytes | IO[Any] | Iterable[bytes] | str
|
||||
|
||||
class DummyConnection: ...
|
||||
|
||||
BaseSSLError = ssl.SSLError
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
import io
|
||||
from _typeshed import Self
|
||||
from collections.abc import Iterator, Mapping
|
||||
from collections.abc import Iterable, Iterator, Mapping
|
||||
from http.client import HTTPMessage as _HttplibHTTPMessage, HTTPResponse as _HttplibHTTPResponse
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
from typing import IO, Any
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
from urllib3.connectionpool import HTTPConnection
|
||||
|
||||
from . import HTTPConnectionPool, Retry
|
||||
from ._collections import HTTPHeaderDict
|
||||
from .connection import _TYPE_BODY
|
||||
|
||||
_TYPE_BODY: TypeAlias = bytes | IO[Any] | Iterable[bytes] | str
|
||||
|
||||
class DeflateDecoder:
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user