Skip to content

Commit e261661

Browse files
authored
Update uri.py
Fix for Python3 `__eq__` disables inheritance of `__hash__`
1 parent f45783e commit e261661

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rfc3986/uri.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def __new__(cls, scheme, authority, path, query, fragment,
9797
ref.encoding = encoding
9898
return ref
9999

100+
__hash__ = tuple.__hash__
101+
100102
def __eq__(self, other):
101103
"""Compare this reference to another."""
102104
other_ref = other

0 commit comments

Comments
 (0)