-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Preserve visible quote types for f-string debug expressions #4005
Conversation
cb8de51
to
3b52b22
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the regex is right, need to care about things like {foo("asdf")=}
as well. Also maybe worth using iter_fexpr_spans
?
Thanks, will fix! 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks pretty good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't mind a test involving :=
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!!!!
diff-shades keeps failing, but it passed previously and we haven't changed anything substantial since, so I'm just going to merge. |
Can we close the issue also 🙏 |
@henriholopainen it's easier if you put "Fixes #3860" in your PR description :) |
Description
Don't touch visible quotes in f-string debug expressions. From this issue.
Checklist - did you ...
CHANGES.md
if necessary?