MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / _aggregates

Function _aggregates

api/tests/unit/experimentation/test_services.py:583–592  ·  view source on GitHub ↗
(
    specs: list[MetricSpec],
    exposure_counts: dict[str, int],
    metric_stats: dict[int, dict[str, VariantStats]],
)

Source from the content-addressed store, hash-verified

581
582
583def _aggregates(
584 specs: list[MetricSpec],
585 exposure_counts: dict[str, int],
586 metric_stats: dict[int, dict[str, VariantStats]],
587) -> ResultsAggregates:
588 return ResultsAggregates(
589 specs=specs,
590 exposure_counts=exposure_counts,
591 metric_stats=metric_stats,
592 )
593
594
595def _result_columns(metric_count: int) -> list[tuple[str, str]]:

Calls 1

ResultsAggregatesClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…