Skip to content

Commit f5923db

Browse files
committed
STY: Enforce Ruff rule B905 for scripts/validate_unwanted_patterns.py
1 parent ea75dd7 commit f5923db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/validate_unwanted_patterns.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ def has_wrong_whitespace(first_line: str, second_line: str) -> bool:
266266

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

269-
for first_token, second_token, third_token in zip(tokens, tokens[1:], tokens[2:]):
269+
for first_token, second_token, third_token in zip(
270+
tokens, tokens[1:], tokens[2:], strict=False
271+
):
270272
# Checking if we are in a block of concated string
271273
if (
272274
first_token.type == third_token.type == token.STRING

0 commit comments

Comments
 (0)