Skip to content

Commit 93526c2

Browse files
correct three editing errors
1 parent f56c230 commit 93526c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misc/perf_compare.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def edit_python_file(fnam: str) -> None:
6666

6767

6868
def run_benchmark(
69-
compiled_dir: str, check_dir: str, *, incremental: bool, code: str, foreign: bool | None
69+
compiled_dir: str, check_dir: str, *, incremental: bool, code: str | None, foreign: bool | None
7070
) -> float:
7171
cache_dir = os.path.join(compiled_dir, ".mypy_cache")
7272
if os.path.isdir(cache_dir) and not incremental:
@@ -213,11 +213,11 @@ def main() -> None:
213213
delta = f"{d:+.1%}"
214214
print(f"{commit:<25} {tt:.3f}s ({delta}) | stdev {s:.3f}s ")
215215

216-
t = int( time.time() - whole_program_time_0 )
216+
t = int( time.time() - whole_program_time_0 )
217217
total_time_taken_formatted = ", ".join(
218218
f"{v} {n if v==1 else n+'s'}" for v, n in ((t//3600, "hour"), (t//60%60, "minute"), (t%60, "second")) if v
219219
)
220-
print(f"Total time taken by the whole benchmarking program (including any setup):", total_time_taken_formatted)
220+
print("Total time taken by the whole benchmarking program (including any setup):", total_time_taken_formatted)
221221

222222
shutil.rmtree(check_dir)
223223
for target_dir in target_dirs:

0 commit comments

Comments
 (0)