Skip to content

Commit d610f8c

Browse files
committed
typing fix
1 parent 80730f9 commit d610f8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

codeflash/models/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ class BestOptimization(BaseModel):
7171
candidate: OptimizedCandidate
7272
helper_functions: list[FunctionSource]
7373
runtime: int
74-
replay_runtime: int | None
75-
replay_performance_gain: float | None
74+
replay_runtime: Optional[int] = None
75+
replay_performance_gain: Optional[float] = None
7676
winning_behavioral_test_results: TestResults
7777
winning_benchmarking_test_results: TestResults
78-
winning_replay_benchmarking_test_results : TestResults | None = None
78+
winning_replay_benchmarking_test_results : Optional[TestResults] = None
7979

8080

8181
class CodeString(BaseModel):
@@ -220,7 +220,7 @@ class OriginalCodeBaseline(BaseModel):
220220
behavioral_test_results: TestResults
221221
benchmarking_test_results: TestResults
222222
runtime: int
223-
coverage_results: CoverageData | None
223+
coverage_results: Optional[CoverageData]
224224

225225

226226
class CoverageStatus(Enum):

0 commit comments

Comments
 (0)