Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/validate_unwanted_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ def has_wrong_whitespace(first_line: str, second_line: str) -> bool:

tokens: list = list(tokenize.generate_tokens(file_obj.readline))

for first_token, second_token, third_token in zip(tokens, tokens[1:], tokens[2:]):
for first_token, second_token, third_token in zip(
tokens, tokens[1:], tokens[2:], strict=False
):
# Checking if we are in a block of concated string
if (
first_token.type == third_token.type == token.STRING
Expand Down
Loading