From f5923dbe8ee146ebd567c19b3b03fa7625470cb1 Mon Sep 17 00:00:00 2001 From: aljosanpedro Date: Sun, 26 Oct 2025 14:34:18 +0800 Subject: [PATCH] STY: Enforce Ruff rule B905 for scripts/validate_unwanted_patterns.py --- scripts/validate_unwanted_patterns.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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