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

Remove unnecessary concatenated strings #18044

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

AlexWaygood
Copy link
Member

We have some strings which use implicit concatenation unnecessarily (where the whole string can fit on a single line without implicit concatenation). This PR removes them.

For some of the changed lines here, I also did some driveby modernisations to use f-strings, since I was touching those lines anyway.

mypy/messages.py Outdated Show resolved Hide resolved
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja merged commit 38d26aa into python:master Oct 25, 2024
19 checks passed
@AlexWaygood AlexWaygood deleted the string-concatenations branch October 25, 2024 23:01
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