Skip to content

Commit da01798

Browse files
GSK-2407 Made metric None as default (#1769)
1 parent 6df7e1a commit da01798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

giskard/core/test_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class TestResult:
7777
messages: List[TestMessage] = field(default_factory=list, repr=False)
7878
props: Dict[str, str] = field(default_factory=dict, repr=False)
7979
metric_name: str = "Metric"
80-
metric: float = 0
80+
metric: Optional[float] = None
8181
missing_count: int = 0
8282
missing_percent: float = 0
8383
unexpected_count: int = 0

0 commit comments

Comments
 (0)