Skip to content

Commit 734d91f

Browse files
authored
update-stubtest-whitelist: fix type errors (#4581)
Co-authored-by: hauntsaninja <>
1 parent d6d2249 commit 734d91f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/update-stubtest-whitelist.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def parse_input_file(input_file: str) -> Dict[str, Set[str]]:
3333
# Returns a (filename, entry) tuple.
3434
def parse_input_line(line: str) -> Tuple[str, str]:
3535
line = line.strip()
36-
return line.split(":", maxsplit=1)
36+
filename, entry = line.split(":", maxsplit=1)
37+
return filename, entry
3738

3839

3940
def remove_entries_from_whitelist(filename: str, entries: Set[str]) -> None:
@@ -46,7 +47,7 @@ def remove_entries_from_whitelist(filename: str, entries: Set[str]) -> None:
4647
else:
4748
new_lines.append(line)
4849
if entries:
49-
print(f"WARNING: The following entries were not found in '{filename}':", filename=sys.stderr)
50+
print(f"WARNING: The following entries were not found in '{filename}':", file=sys.stderr)
5051
for entry in entries:
5152
print(f" * {entry}")
5253
with open(filename, "w") as f:

0 commit comments

Comments
 (0)