You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's missing two commas! However, if you're generally OK with multi-line implicit concatenation (which I am), there's currently no way to get a warning for this case. I therefore propose adding a new rule, ISC004, which will warn if implicitly-concatenated strings are separated by a comment - which can be fixed by either adding an explicit + or moving the comment.
What's wrong with this code?
It's missing two commas! However, if you're generally OK with multi-line implicit concatenation (which I am), there's currently no way to get a warning for this case. I therefore propose adding a new rule,
ISC004
, which will warn if implicitly-concatenated strings are separated by a comment - which can be fixed by either adding an explicit+
or moving the comment.See also flake8-implicit-str-concat/flake8-implicit-str-concat#55. I would not add an autofix for this lint rule, as the intended semantics are ambiguous.
The text was updated successfully, but these errors were encountered: