Skip to content

Commit 732e780

Browse files
authored
Ruff: Add and fix B905 (#11952)
1 parent de0b9af commit 732e780

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

dojo/templatetags/display_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def render(self, context):
410410
iterable = template.Variable(self.iterable).resolve(context)
411411
num_cols = self.num_cols
412412
context[self.varname] = zip(
413-
*[chain(iterable, [None] * (num_cols - 1))] * num_cols)
413+
*[chain(iterable, [None] * (num_cols - 1))] * num_cols, strict=True)
414414
return ""
415415

416416
try:

ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ select = [
8585
"FURB",
8686
"DOC202", "DOC403", "DOC502",
8787
"RUF",
88+
"B905",
8889
]
8990
ignore = [
9091
"E501",

unittests/tools/test_semgrep_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_different_lines_same_fingerprint(self):
112112
parser = SemgrepParser()
113113
findings_second = parser.get_findings(testfile2, Test())
114114
self.assertEqual(len(findings_first), len(findings_second))
115-
for first, second in zip(findings_first, findings_second):
115+
for first, second in zip(findings_first, findings_second, strict=True):
116116
self.assertEqual(first.unique_id_from_tool, second.unique_id_from_tool)
117117

118118
def test_parse_issue_8435(self):

0 commit comments

Comments
 (0)