Skip to content

Comments

Upgrade RustPython to support parenthesized context managers#1228

Merged
charliermarsh merged 1 commit intomainfrom
charlie/parenthsized-with
Dec 13, 2022
Merged

Upgrade RustPython to support parenthesized context managers#1228
charliermarsh merged 1 commit intomainfrom
charlie/parenthsized-with

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 force-pushed the charlie/parenthsized-with branch from ceb629f to a3f1fe6 Compare December 13, 2022 15:09
@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

Development

Successfully merging this pull request may close these issues.

Parenthesized context managers raise E999 E999 syntax error for match statement Crash on parenthesized with statement

5 participants