From 45947fbbac8cd72f2139944b65772caf2946efd6 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Thu, 11 Jul 2024 09:00:30 -0700 Subject: [PATCH] /* PR_START p--query-resolution-perf 08 */ Remove `LinkableElementSet.__len__()`. --- .../metricflow_semantics/specs/linkable_spec_set.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/metricflow-semantics/metricflow_semantics/specs/linkable_spec_set.py b/metricflow-semantics/metricflow_semantics/specs/linkable_spec_set.py index 43d55d3b6b..a2792ca510 100644 --- a/metricflow-semantics/metricflow_semantics/specs/linkable_spec_set.py +++ b/metricflow-semantics/metricflow_semantics/specs/linkable_spec_set.py @@ -135,9 +135,6 @@ def difference(self, other: LinkableSpecSet) -> LinkableSpecSet: # noqa: D102 group_by_metric_specs=tuple(set(self.group_by_metric_specs) - set(other.group_by_metric_specs)), ) - def __len__(self) -> int: # noqa: D105 - return len(self.dimension_specs) + len(self.time_dimension_specs) + len(self.entity_specs) - @staticmethod def create_from_specs(specs: Sequence[LinkableInstanceSpec]) -> LinkableSpecSet: # noqa: D102 return _group_specs_by_type(specs)