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

fix: delete deprecation warning of anyio in asyncify decorator #147

Closed
wants to merge 8 commits into from

Conversation

baaaqt
Copy link

@baaaqt baaaqt commented Apr 25, 2024

Deleted deprecation warning for anyio>=4.1.0.
Using asyncify shows warning message:

.venv/lib/python3.11/site-packages/asyncer/_main.py:365: DeprecationWarning: The `cancellable=` keyword argument to `anyio.to_thread.run_sync` is deprecated since AnyIO 4.1.0; use `abandon_on_cancel=` instead

This PR fixed it

@tiangolo
Copy link
Member

Thanks! This was solved in #202 🤓

This is available in Asyncer 0.0.8, just released. 🎉

I'll now close this one, but thanks for the interest! ☕

@tiangolo tiangolo closed this Aug 24, 2024
@baaaqt baaaqt deleted the fix-anyio-deprecation-warning branch October 5, 2024 08:54
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.

2 participants