Repository navigation
🦥 httpcore2 imports under PYTHON_LAZY_IMPORTS=all
httpx2 and httpcore2 2.17.1 are a patch release with one fix. You will notice it if you run Python 3.15 with PYTHON_LAZY_IMPORTS=all. On 2.17.0, httpx2.Client() and import httpcore2 failed in that mode.
pip install --upgrade httpx2==2.17.1httpcore2no longer fails to import with lazy imports enabled (#1367). It raisedAttributeError: 'lazy_import' object has no attribute '__module__', becausehttpcore2/__init__.pyset__module__on names that were still lazy placeholders. Each class and function now sets it in the module that defines it, so public names still reporthttpcore2as their module.
httpx2 has no changes. It is bumped to stay in lockstep with httpcore2.
⚠️ truststore still needs a release
httpx2.Client() can still fail in this mode with NameError: name '_api' is not defined, raised by truststore 0.10.5. That is fixed in sethmlarson/truststore#265, which is not in a release yet.
Full changelog: v2.17.0...v2.17.1