Skip to content

Commit de33b03

Browse files
committed
Add a generic type representing all quantity implementations
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent a8d1545 commit de33b03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/frequenz/sdk/timeseries/_quantities.py

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

88
import math
99
from datetime import timedelta
10-
from typing import Self, overload
10+
from typing import Self, TypeVar, overload
11+
12+
QuantityT = TypeVar("QuantityT", "Quantity", "Power", "Current", "Voltage", "Energy")
1113

1214

1315
class Quantity:

0 commit comments

Comments
 (0)