We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d610f8c commit 93f583cCopy full SHA for 93f583c
codeflash/result/explanation.py
@@ -1,4 +1,6 @@
1
+from __future__ import annotations
2
from pathlib import Path
3
+from typing import Optional, Union
4
5
from pydantic.dataclasses import dataclass
6
@@ -15,9 +17,9 @@ class Explanation:
15
17
best_runtime_ns: int
16
18
function_name: str
19
file_path: Path
- replay_performance_gain: float | None
- fto_benchmark_timings: dict[str, int] | None
20
- total_benchmark_timings: dict[str, int] | None
+ replay_performance_gain: Optional[float]
21
+ fto_benchmark_timings: Optional[Union[dict, int]]
22
+ total_benchmark_timings: Optional[Union[dict, int]]
23
24
@property
25
def perf_improvement_line(self) -> str:
0 commit comments