Yesterday's update to `anyio` breaks startlette
Kludex opened this issue · comments
Discussed in #2261
Originally posted by fernandosilveira August 31, 2023
Yesterday anyio
updated to version 4.0.0
and starlette accepts anything >=3.4.0
.
Apparently, the latest anyio
no longer has start_blocking_portal
, thus breaking the test client (e.g., here).
I haven't looked deep enough into it but I suppose it's reasonable that anyio
did not feel obliged to maintain backwards compatibility on a major version upgrade.
Important
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
Case closed: #2261
Thanks @agronholm
Just for anyone who finds this: we also had the reported error in our (somewhat old) fast API project. As per the linked discussion we pinned anyio
to 3.7.1
which has allowed the tests to pass again. Pin your dependencies, friends.
FastAPI itself pinned AnyIO to < 4 in the 0.103.1 release.