Skip to content

Commit 275b88b

Browse files
committed
better type hinting
1 parent 6418e7d commit 275b88b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codeflash/verification/parse_line_profile_test_output.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
import dill as pickle
77
from pathlib import Path
8+
from typing import Optional
89

910
def show_func(filename, start_lineno, func_name, timings, unit):
1011
total_hits = sum(t[1] for t in timings)
@@ -72,7 +73,7 @@ def show_text(stats: dict) -> str:
7273
out_table+=table_md
7374
return out_table
7475

75-
def parse_line_profile_results(line_profiler_output_file: Path | None) -> dict:
76+
def parse_line_profile_results(line_profiler_output_file: Optional[Path]) -> dict:
7677
line_profiler_output_file = line_profiler_output_file.with_suffix(".lprof")
7778
stats_dict = {}
7879
if not line_profiler_output_file.exists():

0 commit comments

Comments
 (0)