-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
False negatives for implicit string concatenation #6441
Comments
A decision was made in fcc0151 to not raise |
Saw this comment about it: #1655 (comment) |
We have the option with open("file.txt" "r", encoding="utf8") as f:
content = f.read()
Also seeing #1655 (comment) I think not including calls is an oversight too. |
Current problem
The following code:
Could be rewritten:
But
Should not, because the implicit string concatenation is not useless as removing it would make the line go over the max line length.
Desired solution
Raise
implicit-str-concat
in this situation.Additional context
pylint-dev/astroid#1525 (comment)
The text was updated successfully, but these errors were encountered: