Skip to content

Commit 6795a5c

Browse files
committed
pass mypy
1 parent 4b37f27 commit 6795a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/result/critic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
MIN_TESTCASE_PASSED_THRESHOLD,
1111
MIN_THROUGHPUT_IMPROVEMENT_THRESHOLD,
1212
)
13-
from codeflash.models.models import TestType
13+
from codeflash.models import models
1414

1515
if TYPE_CHECKING:
1616
from codeflash.models.models import CoverageData, OptimizedCandidateResult, OriginalCodeBaseline
@@ -106,7 +106,7 @@ def quantity_of_tests_critic(candidate_result: OptimizedCandidateResult | Origin
106106
if pass_count >= MIN_TESTCASE_PASSED_THRESHOLD:
107107
return True
108108
# If one or more tests passed, check if least one of them was a successful REPLAY_TEST
109-
return bool(pass_count >= 1 and report[TestType.REPLAY_TEST]["passed"] >= 1)
109+
return bool(pass_count >= 1 and report[models.TestType.REPLAY_TEST]["passed"] >= 1)
110110

111111

112112
def coverage_critic(original_code_coverage: CoverageData | None, test_framework: str) -> bool:

0 commit comments

Comments
 (0)