Skip to content

Commit aa5bd35

Browse files
committed
Update FormulaGeneratorConfig to take abc.Set instead of set
... and the same change in EVChargerCurrentFormula generator. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 630d344 commit aa5bd35

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/frequenz/sdk/timeseries/_formula_engine/_formula_generators/_ev_charger_current_formula.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from __future__ import annotations
77

88
import logging
9+
from collections import abc
910

1011
from ....microgrid.component import ComponentMetricId
1112
from .._formula_engine import FormulaEngine, FormulaEngine3Phase
@@ -67,7 +68,7 @@ def generate(self) -> FormulaEngine3Phase:
6768

6869
def _gen_phase_formula(
6970
self,
70-
component_ids: set[int],
71+
component_ids: abc.Set[int],
7172
metric_id: ComponentMetricId,
7273
) -> FormulaEngine:
7374
builder = self._get_builder("ev-current", metric_id)

src/frequenz/sdk/timeseries/_formula_engine/_formula_generators/_formula_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import sys
99
from abc import ABC, abstractmethod
10+
from collections import abc
1011
from dataclasses import dataclass
1112

1213
from frequenz.channels import Sender
@@ -32,7 +33,7 @@ class ComponentNotFound(FormulaGenerationError):
3233
class FormulaGeneratorConfig:
3334
"""Config for formula generators."""
3435

35-
component_ids: set[int] | None = None
36+
component_ids: abc.Set[int] | None = None
3637

3738

3839
class FormulaGenerator(ABC):

0 commit comments

Comments
 (0)