Repository navigation
🩹 Type aliases evaluate at runtime again
httpx2 and httpcore2 2.16.2 are a patch release with one fix. You will notice it if your code, or a library you depend on, uses the aliases in httpx2._types inside a runtime typing construct. On 2.16.1, import mistralai.client failed on Python 3.11 to 3.13.
pip install --upgrade httpx2==2.16.2Optional[QueryParamTypes]andQueryParamTypes | Nonework again (#1346). In 2.16.1URLTypes,QueryParamTypes,HeaderTypes,CookieTypes,TimeoutTypes,ProxyTypesandAuthTypeswere strings.Optional[...]raisedSyntaxErrorforQueryParamTypesandHeaderTypes, and| NoneraisedTypeErrorfor all seven. They areUnion[...]objects again, as in 2.16.0.
httpcore2 has no changes. It is bumped to stay in lockstep with httpx2.
Full changelog: v2.16.1...v2.16.2