Skip to content

Commit

Permalink
Fix linter errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Liraim committed Jan 22, 2025
1 parent 0d1db53 commit dd811b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evidently/future/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ def _default_input_data_generator(context: "Context") -> InputData:

def metric_tests_stats(tests: List[MetricTestResult]) -> BaseWidgetInfo:
statuses = [TestStatus.SUCCESS, TestStatus.WARNING, TestStatus.FAIL, TestStatus.ERROR]
status_stats = {}
status_stats: Dict[TestStatus, int] = {}
for test in tests:
status_stats[test.status] = status_stats.get(test.status, 0) + 1
stats = counter(
title="",
size=WidgetSize.FULL,
counters=[CounterData(status.value, status_stats.get(status, 0)) for status in statuses],
counters=[CounterData(status.value, str(status_stats.get(status, 0))) for status in statuses],
)
stats.params["v2_test"] = True
return stats
Expand Down

0 comments on commit dd811b2

Please sign in to comment.