def base_metric_dependency(self) -> List[str]:
        """Returns a unique list of names for all upstream non-derived metrics."""
        in_scope_metrics = list(self.parent_metrics(self.node, self.manifest))
        base_metrics = {
            metric.name for metric in in_scope_metrics if metric.type not in DERIVED_METRICS
        }

        return list(base_metrics)
Returns a unique list of names for all upstream non-derived metrics.
core/dbt/contracts/graph/metrics.py