Skip to content

Commit 4009eec

Browse files
committed
Remove support for hashing of Quantity objects
Closes #532 Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 520406f commit 4009eec

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/frequenz/sdk/timeseries/_quantities.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,6 @@ def isinf(self) -> bool:
100100
"""
101101
return math.isinf(self._base_value)
102102

103-
def __hash__(self) -> int:
104-
"""Return a hash of this object.
105-
106-
Returns:
107-
A hash of this object.
108-
"""
109-
return hash((type(self), self._base_value))
110-
111103
def __repr__(self) -> str:
112104
"""Return a representation of this quantity.
113105

0 commit comments

Comments
 (0)