Skip to content

Commit 47f9163

Browse files
committed
Add explicit type hint to results_dict
1 parent e19f09e commit 47f9163

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎conformance/src/type_checker.py‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def run_tests(self, test_files: Sequence[str]) -> dict[str, str]:
235235
"--config-file=./ty.toml",
236236
]
237237
proc = run(command, stdout=PIPE, text=True, encoding="utf-8")
238-
results_dict = {}
238+
results_dict: dict[str, str] = {}
239239
for line in proc.stdout.splitlines():
240240
if not line.strip():
241241
continue
@@ -339,7 +339,14 @@ def get_version(self) -> str:
339339

340340
def run_tests(self, test_files: Sequence[str]) -> dict[str, str]:
341341
proc = run(
342-
["pyrefly", "check", "--output-format", "min-text", "--summary=none", "--min-severity=warn"],
342+
[
343+
"pyrefly",
344+
"check",
345+
"--output-format",
346+
"min-text",
347+
"--summary=none",
348+
"--min-severity=warn",
349+
],
343350
stdout=PIPE,
344351
text=True,
345352
encoding="utf-8",

0 commit comments

Comments
 (0)