encode / uvicorn

An ASGI web server, for Python. 🦄
https://www.uvicorn.org/
BSD 3-Clause "New" or "Revised" License
8.11k stars 701 forks source link

Bump httpx to 0.27.0 #2288

Closed dcermak closed 2 months ago

dcermak commented 3 months ago

Summary

httpx version 0.27.0 deprecated the app= shortcut, which makes uvicorn's testsuite now fail in openSUSE. This PR fixes the tests for httpx 0.27.0 by relying on ASGITransport(app=app) instead.

Checklist

dcermak commented 3 months ago

Type checking currently fails due to https://github.com/encode/httpx/pull/3109 not being in the httpx 0.27 release

dcermak commented 2 months ago

You can add # type: ignore on those.

Done. Should I add FIXMEs to remove this once the next httpx release is out?

Kludex commented 2 months ago

You can add # type: ignore on those.

Done. Should I add FIXMEs to remove this once the next httpx release is out?

No. We already error on unused type: ignores.

Kludex commented 2 months ago

@dcermak Thanks! 🙏