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

Upgrade RustPython to support parenthesized context managers #1228

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Dec 13, 2022

Thanks to @andersk for the fix upstream. We also get much-improved end-locations for functions and classes and other compound statements based on @harupy's work.

Closes #54.
Closes #847.
Closes #680.

@charliermarsh charliermarsh merged commit a58b9b5 into main Dec 13, 2022
@charliermarsh charliermarsh deleted the charlie/parenthsized-with branch December 13, 2022 15:16
@squiddy
Copy link
Contributor

squiddy commented Dec 13, 2022

Oh that's great. Thanks @andersk & @harupy. Now I can pitch ruff to my team. It was blocked on this issue.

@charliermarsh
Copy link
Member Author

I'm pumped for this!

@antonagestam
Copy link

This pushed me to try ruff on phantom-types, and I'm very impressed with it! 🚀

antonagestam/phantom-types#259

@charliermarsh
Copy link
Member Author

Rock on! Thank you for giving Ruff a try. Looks like a cool project by the way :)

@153957
Copy link
Contributor

153957 commented Dec 15, 2022

This says 'Closes #680.' But it only fixes the context managers right? Not structural pattern matching which that issues was originally about.

@andersk
Copy link
Contributor

andersk commented Dec 15, 2022

Yes, although we still have an open issue for that and we only need one.

@charliermarsh
Copy link
Member Author

(Yes, sorry, my mistake.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants