Skip to content

Commit 0cd3135

Browse files
committed
Expose deprecated FormulaEngine and FormulaEngine3Phase types
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 6721560 commit 0cd3135

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
4+
"""Deprecated Formula Engine."""
5+
6+
7+
from typing_extensions import deprecated
8+
9+
from .._base_types import QuantityT
10+
from ..formulas._formula import Formula
11+
from ..formulas._formula_3_phase import Formula3Phase
12+
13+
14+
@deprecated(
15+
"The FormulaEngine class is deprecated and will be removed in a future release. "
16+
+ "Please use the Formula class instead."
17+
)
18+
class FormulaEngine(Formula[QuantityT]):
19+
"""Deprecated Formula Engine class.
20+
21+
This class is deprecated and will be removed in a future release.
22+
Please use the `Formula` and `Formula3Phase` classes directly.
23+
"""
24+
25+
26+
@deprecated(
27+
"The FormulaEngine3Phase class is deprecated and will be removed in a future release. "
28+
+ "Please use the Formula3Phase class instead."
29+
)
30+
class FormulaEngine3Phase(Formula3Phase[QuantityT]):
31+
"""Deprecated FormulaEngine3Phase class.
32+
33+
This class is deprecated and will be removed in a future release.
34+
Please use the `Formula3Phase` class directly.
35+
"""
36+
37+
38+
__all__ = ["FormulaEngine", "FormulaEngine3Phase"]

0 commit comments

Comments
 (0)