From 609df7ecc0f7cb10a1c998aa9c269bba77337c5f Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 27 Aug 2024 13:52:05 +0100 Subject: [PATCH] Reintroduce `URLTypes`. (#3288) --- CHANGELOG.md | 8 +++++++- httpx/__version__.py | 2 +- httpx/_types.py | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94900bcb31..f3aba3cc03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## 0.27.2 (27th August, 2024) + +### Fixed + +* Reintroduced supposedly-private `URLTypes` shortcut. (#2673) + ## 0.27.1 (27th August, 2024) -## Added +### Added * Support for `zstd` content decoding using the python `zstandard` package is added. Installable using `httpx[zstd]`. (#3139) diff --git a/httpx/__version__.py b/httpx/__version__.py index 2289912a16..5eaaddbac9 100644 --- a/httpx/__version__.py +++ b/httpx/__version__.py @@ -1,3 +1,3 @@ __title__ = "httpx" __description__ = "A next generation HTTP client, for Python 3." -__version__ = "0.27.1" +__version__ = "0.27.2" diff --git a/httpx/_types.py b/httpx/_types.py index 7d959dcb54..661af262e7 100644 --- a/httpx/_types.py +++ b/httpx/_types.py @@ -43,6 +43,8 @@ ], ) +URLTypes = Union["URL", str] + QueryParamTypes = Union[ "QueryParams", Mapping[str, Union[PrimitiveData, Sequence[PrimitiveData]]],