implicit-str-concat
: allow wrapping implicitly concatenated strings in parenthesis.
#8552
Labels
Enhancement ✨
Improvement to a component
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Milestone
Current problem
Internally, we have enabled the
--check-str-concat-over-line-jumps
option forimplicit-str-concat
. But we also allow wrapping implicitly concatenated strings in parenthesis. This is done by our internal patch to Pylint ~3 years ago.Example code:
It raises
implicit-str-concat
on the"aa bb"
line, that's good to catch bugs of missing commas.But for long strings that must be put on multiple lines, currently you need to use explicit str concatenations:
We think it should also be fine to use implicit str concatenations BUT wrapped inside parenthesis:
Desired solution
Introduce an opt-in option
allow-parenthesized-str-concat
. When enabled, allow the use of parenthesis.Additional context
WDYT? If you agree, I'll send out our patch.
The text was updated successfully, but these errors were encountered: