Skip to content

Commit 1188b8d

Browse files
committed
Fix
1 parent e014eb2 commit 1188b8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/utils/git/code-lint-helper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import os
2424
import subprocess
2525
import sys
26-
from typing import Any, Dict, Final, List, Sequence
26+
from typing import Any, Dict, Final, Iterable, List, Sequence
2727

2828

2929
class LintArgs:
@@ -194,7 +194,7 @@ def filter_changed_files(self, changed_files: Sequence[str]) -> Sequence[str]:
194194
arg for arg in changed_files if "third-party" not in arg
195195
]
196196

197-
filtered_files = []
197+
filtered_files: List[str] = []
198198
for filepath in clang_tidy_changed_files:
199199
_, ext = os.path.splitext(filepath)
200200
if ext not in (".c", ".cpp", ".cxx", ".h", ".hpp", ".hxx"):
@@ -298,8 +298,8 @@ class Doc8LintHelper(LintHelper):
298298
def instructions(self, files_to_lint: Iterable[str], args: LintArgs) -> str:
299299
return f"doc8 -q {' '.join(files_to_lint)}"
300300

301-
def filter_changed_files(self, changed_files: Iterable[str]) -> Sequence[str]:
302-
filtered_files = []
301+
def filter_changed_files(self, changed_files: Sequence[str]) -> Sequence[str]:
302+
filtered_files: List[str] = []
303303
for filepath in changed_files:
304304
_, ext = os.path.splitext(filepath)
305305
if ext != ".rst":

0 commit comments

Comments
 (0)