aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-12-09 08:18:00 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-12-09 08:29:54 +0300
commit5f8da71fa8b7ccef2ff0900693a77069bf8b4eab (patch)
tree5f153b0a6d04a0336bef310ca24853cf7136a6f3
parentd28ef937b78102c2d1d8a8eb0ee782cf0bee5b68 (diff)
downloadydb-5f8da71fa8b7ccef2ff0900693a77069bf8b4eab.tar.gz
Intermediate changes
-rw-r--r--contrib/python/httpx/.dist-info/METADATA13
-rw-r--r--contrib/python/httpx/httpx/__version__.py2
-rw-r--r--contrib/python/httpx/httpx/_auth.py4
-rw-r--r--contrib/python/httpx/httpx/_client.py6
-rw-r--r--contrib/python/httpx/httpx/_config.py8
-rw-r--r--contrib/python/httpx/httpx/_content.py4
-rw-r--r--contrib/python/httpx/httpx/_decoders.py2
-rw-r--r--contrib/python/httpx/httpx/_models.py6
-rw-r--r--contrib/python/httpx/httpx/_transports/default.py4
-rw-r--r--contrib/python/httpx/ya.make2
10 files changed, 23 insertions, 28 deletions
diff --git a/contrib/python/httpx/.dist-info/METADATA b/contrib/python/httpx/.dist-info/METADATA
index e4abd6660e..247ac2e118 100644
--- a/contrib/python/httpx/.dist-info/METADATA
+++ b/contrib/python/httpx/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: httpx
-Version: 0.25.1
+Version: 0.25.2
Summary: The next generation HTTP client.
Project-URL: Changelog, https://github.com/encode/httpx/blob/master/CHANGELOG.md
Project-URL: Documentation, https://www.python-httpx.org
@@ -27,7 +27,7 @@ Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.8
Requires-Dist: anyio
Requires-Dist: certifi
-Requires-Dist: httpcore
+Requires-Dist: httpcore==1.*
Requires-Dist: idna
Requires-Dist: sniffio
Provides-Extra: brotli
@@ -194,14 +194,9 @@ inspiration around the lower-level networking details.
## Release Information
-### 0.25.1 (3rd November, 2023)
+### Added
-* Add support for Python 3.12. (#2854)
-* Add support for httpcore 1.0 (#2885)
-
-### Fixed
-
-* Raise `ValueError` on `Response.encoding` being set after `Response.text` has been accessed. (#2852)
+* Add missing type hints to few `__init__()` methods. (#2938)
---
diff --git a/contrib/python/httpx/httpx/__version__.py b/contrib/python/httpx/httpx/__version__.py
index 9f92ef99b9..c6bc0ac023 100644
--- a/contrib/python/httpx/httpx/__version__.py
+++ b/contrib/python/httpx/httpx/__version__.py
@@ -1,3 +1,3 @@
__title__ = "httpx"
__description__ = "A next generation HTTP client, for Python 3."
-__version__ = "0.25.1"
+__version__ = "0.25.2"
diff --git a/contrib/python/httpx/httpx/_auth.py b/contrib/python/httpx/httpx/_auth.py
index c2c38f3945..66132500ff 100644
--- a/contrib/python/httpx/httpx/_auth.py
+++ b/contrib/python/httpx/httpx/_auth.py
@@ -126,7 +126,7 @@ class BasicAuth(Auth):
def __init__(
self, username: typing.Union[str, bytes], password: typing.Union[str, bytes]
- ):
+ ) -> None:
self._auth_header = self._build_auth_header(username, password)
def auth_flow(self, request: Request) -> typing.Generator[Request, Response, None]:
@@ -146,7 +146,7 @@ class NetRCAuth(Auth):
Use a 'netrc' file to lookup basic auth credentials based on the url host.
"""
- def __init__(self, file: typing.Optional[str] = None):
+ def __init__(self, file: typing.Optional[str] = None) -> None:
# Lazily import 'netrc'.
# There's no need for us to load this module unless 'NetRCAuth' is being used.
import netrc
diff --git a/contrib/python/httpx/httpx/_client.py b/contrib/python/httpx/httpx/_client.py
index cb475e0204..2c7ae030f5 100644
--- a/contrib/python/httpx/httpx/_client.py
+++ b/contrib/python/httpx/httpx/_client.py
@@ -172,7 +172,7 @@ class BaseClient:
base_url: URLTypes = "",
trust_env: bool = True,
default_encoding: typing.Union[str, typing.Callable[[bytes], str]] = "utf-8",
- ):
+ ) -> None:
event_hooks = {} if event_hooks is None else event_hooks
self._base_url = self._enforce_trailing_slash(URL(base_url))
@@ -642,7 +642,7 @@ class Client(BaseClient):
app: typing.Optional[typing.Callable[..., typing.Any]] = None,
trust_env: bool = True,
default_encoding: typing.Union[str, typing.Callable[[bytes], str]] = "utf-8",
- ):
+ ) -> None:
super().__init__(
auth=auth,
params=params,
@@ -1367,7 +1367,7 @@ class AsyncClient(BaseClient):
app: typing.Optional[typing.Callable[..., typing.Any]] = None,
trust_env: bool = True,
default_encoding: typing.Union[str, typing.Callable[[bytes], str]] = "utf-8",
- ):
+ ) -> None:
super().__init__(
auth=auth,
params=params,
diff --git a/contrib/python/httpx/httpx/_config.py b/contrib/python/httpx/httpx/_config.py
index 50bcede7f7..d4fcfb5c0d 100644
--- a/contrib/python/httpx/httpx/_config.py
+++ b/contrib/python/httpx/httpx/_config.py
@@ -71,7 +71,7 @@ class SSLConfig:
verify: VerifyTypes = True,
trust_env: bool = True,
http2: bool = False,
- ):
+ ) -> None:
self.cert = cert
self.verify = verify
self.trust_env = trust_env
@@ -218,7 +218,7 @@ class Timeout:
read: typing.Union[None, float, UnsetType] = UNSET,
write: typing.Union[None, float, UnsetType] = UNSET,
pool: typing.Union[None, float, UnsetType] = UNSET,
- ):
+ ) -> None:
if isinstance(timeout, Timeout):
# Passed as a single explicit Timeout.
assert connect is UNSET
@@ -303,7 +303,7 @@ class Limits:
max_connections: typing.Optional[int] = None,
max_keepalive_connections: typing.Optional[int] = None,
keepalive_expiry: typing.Optional[float] = 5.0,
- ):
+ ) -> None:
self.max_connections = max_connections
self.max_keepalive_connections = max_keepalive_connections
self.keepalive_expiry = keepalive_expiry
@@ -333,7 +333,7 @@ class Proxy:
ssl_context: typing.Optional[ssl.SSLContext] = None,
auth: typing.Optional[typing.Tuple[str, str]] = None,
headers: typing.Optional[HeaderTypes] = None,
- ):
+ ) -> None:
url = URL(url)
headers = Headers(headers)
diff --git a/contrib/python/httpx/httpx/_content.py b/contrib/python/httpx/httpx/_content.py
index b16e12d954..0aaea33749 100644
--- a/contrib/python/httpx/httpx/_content.py
+++ b/contrib/python/httpx/httpx/_content.py
@@ -42,7 +42,7 @@ class ByteStream(AsyncByteStream, SyncByteStream):
class IteratorByteStream(SyncByteStream):
CHUNK_SIZE = 65_536
- def __init__(self, stream: Iterable[bytes]):
+ def __init__(self, stream: Iterable[bytes]) -> None:
self._stream = stream
self._is_stream_consumed = False
self._is_generator = inspect.isgenerator(stream)
@@ -67,7 +67,7 @@ class IteratorByteStream(SyncByteStream):
class AsyncIteratorByteStream(AsyncByteStream):
CHUNK_SIZE = 65_536
- def __init__(self, stream: AsyncIterable[bytes]):
+ def __init__(self, stream: AsyncIterable[bytes]) -> None:
self._stream = stream
self._is_stream_consumed = False
self._is_generator = inspect.isasyncgen(stream)
diff --git a/contrib/python/httpx/httpx/_decoders.py b/contrib/python/httpx/httpx/_decoders.py
index 500ce7ffc3..b4ac9a44af 100644
--- a/contrib/python/httpx/httpx/_decoders.py
+++ b/contrib/python/httpx/httpx/_decoders.py
@@ -245,7 +245,7 @@ class TextDecoder:
Handles incrementally decoding bytes into text
"""
- def __init__(self, encoding: str = "utf-8"):
+ def __init__(self, encoding: str = "utf-8") -> None:
self.decoder = codecs.getincrementaldecoder(encoding)(errors="replace")
def decode(self, data: bytes) -> str:
diff --git a/contrib/python/httpx/httpx/_models.py b/contrib/python/httpx/httpx/_models.py
index 4e4162db1a..8a5e6280f3 100644
--- a/contrib/python/httpx/httpx/_models.py
+++ b/contrib/python/httpx/httpx/_models.py
@@ -318,7 +318,7 @@ class Request:
json: typing.Optional[typing.Any] = None,
stream: typing.Union[SyncByteStream, AsyncByteStream, None] = None,
extensions: typing.Optional[RequestExtensions] = None,
- ):
+ ) -> None:
self.method = (
method.decode("ascii").upper()
if isinstance(method, bytes)
@@ -456,7 +456,7 @@ class Response:
extensions: typing.Optional[ResponseExtensions] = None,
history: typing.Optional[typing.List["Response"]] = None,
default_encoding: typing.Union[str, typing.Callable[[bytes], str]] = "utf-8",
- ):
+ ) -> None:
self.status_code = status_code
self.headers = Headers(headers)
@@ -1201,7 +1201,7 @@ class Cookies(typing.MutableMapping[str, str]):
for use with `CookieJar` operations.
"""
- def __init__(self, response: Response):
+ def __init__(self, response: Response) -> None:
self.response = response
def info(self) -> email.message.Message:
diff --git a/contrib/python/httpx/httpx/_transports/default.py b/contrib/python/httpx/httpx/_transports/default.py
index 76c543ce4e..343c588f9f 100644
--- a/contrib/python/httpx/httpx/_transports/default.py
+++ b/contrib/python/httpx/httpx/_transports/default.py
@@ -102,7 +102,7 @@ HTTPCORE_EXC_MAP = {
class ResponseStream(SyncByteStream):
- def __init__(self, httpcore_stream: typing.Iterable[bytes]):
+ def __init__(self, httpcore_stream: typing.Iterable[bytes]) -> None:
self._httpcore_stream = httpcore_stream
def __iter__(self) -> typing.Iterator[bytes]:
@@ -241,7 +241,7 @@ class HTTPTransport(BaseTransport):
class AsyncResponseStream(AsyncByteStream):
- def __init__(self, httpcore_stream: typing.AsyncIterable[bytes]):
+ def __init__(self, httpcore_stream: typing.AsyncIterable[bytes]) -> None:
self._httpcore_stream = httpcore_stream
async def __aiter__(self) -> typing.AsyncIterator[bytes]:
diff --git a/contrib/python/httpx/ya.make b/contrib/python/httpx/ya.make
index 112b04e998..f07d3a08ce 100644
--- a/contrib/python/httpx/ya.make
+++ b/contrib/python/httpx/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(0.25.1)
+VERSION(0.25.2)
LICENSE(BSD-3-Clause)