Skip to content

Commit

Permalink
Stop excluding NEWLINE token when checnking token list
Browse files Browse the repository at this point in the history
NEWLINE token is used only when expressions are separated logically, so
implicit concats never happen when NEWLINE is between string literals.

https://docs.python.org/3/library/token.html#module-token
  • Loading branch information
10sr committed Oct 5, 2024
1 parent cdc0a1d commit a1075e5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion flake8_no_implicit_concat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def _check(tokens: Iterable[tokenize.TokenInfo]) -> Iterable[_ERROR]:
if e.type
not in (
tokenize.NL,
tokenize.NEWLINE,
tokenize.INDENT,
tokenize.DEDENT,
tokenize.COMMENT,
Expand Down

0 comments on commit a1075e5

Please sign in to comment.