Skip to content

Commit c72931d

Browse files
committed
Make UserFloat hashable again
1 parent 7307876 commit c72931d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

domdf_python_tools/bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ def __float__(self) -> float:
544544
def __abs__(self: _F) -> _F:
545545
return self.__class__(float(self).__abs__())
546546

547-
# def __hash__(self) -> int:
548-
# return float(self).__hash__()
547+
def __hash__(self) -> int: # type: ignore[override]
548+
return float(self).__hash__()
549549

550550
def __repr__(self) -> str:
551551
return str(self)

0 commit comments

Comments
 (0)