Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add anyio 4.x support #43

Merged
merged 2 commits into from
Dec 10, 2023
Merged

Add anyio 4.x support #43

merged 2 commits into from
Dec 10, 2023

Conversation

florimondmanca
Copy link
Owner

Closes #42

This PR implements the compatibility code from the anyio 3 -> 4 migration guide to gain compatibility with anyio 4 as well retain compatibility with anyio 3.2+.

The compatibility code unwraps single-exception exception groups raised by anyio 4, so as to preserve compatibility with previous behavior: when an exception is raised by a task ran with amap(), that single exception will be raised.

@codecov-commenter
Copy link

codecov-commenter commented Dec 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6fbc908) 100.00% compared to head (ea4b268) 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #43   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        12    +1     
  Lines          317       332   +15     
=========================================
+ Hits           317       332   +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pyproject.toml Outdated Show resolved Hide resolved
@florimondmanca florimondmanca merged commit 358976e into master Dec 10, 2023
6 checks passed
@florimondmanca florimondmanca deleted the feat/anyio4 branch December 10, 2023 13:47
@florimondmanca
Copy link
Owner Author

@kwzrd Thanks for teaming on this. I'll issue a release soon.

@florimondmanca florimondmanca mentioned this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump anyio dependency to latest major version
3 participants