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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of passing False here, should we update the first three args to tokens[:-2], tokens[1:-1], tokens[2:]?

):
# Checking if we are in a block of concated string
if (
first_token.type == third_token.type == token.STRING
Expand Down
Loading