diff --git a/scripts/validate_unwanted_patterns.py b/scripts/validate_unwanted_patterns.py index 04b4fde6a7c0e..435914d3f3c91 100755 --- a/scripts/validate_unwanted_patterns.py +++ b/scripts/validate_unwanted_patterns.py @@ -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