-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[mypyc] Use mypy.FORMAT_RE and ConversionSpecifier for % interpolation #10877
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
[mypyc] Use mypy.FORMAT_RE and ConversionSpecifier for % interpolation #10877
Conversation
The failure is caused by |
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.
Looks good, just one minor comment. Reusing the regular expression used for matching conversion specifiers reduces code duplication and makes it more likely that we parse format strings consistently now and in the future.
Description
mypy.checkstrformat
offers regex andConversionSpecifier
for tokenizer, thus this PR:FormatOp