Skip to content
Snippets Groups Projects
Commit a5937e32 authored by Moul's avatar Moul
Browse files

[fix] GVAEndpoint: Add flags and path to eq() and hash()

parent a86b1295
No related branches found
No related tags found
2 merge requests!157v1.0.0rc0: merge dev into master,!138GVAEndpoint: Add flags and path to eq() and hash()
......@@ -709,14 +709,18 @@ class GVAEndpoint(Endpoint):
if not isinstance(other, self.__class__):
return NotImplemented
return (
self.server == other.server
self.flags == other.flags
and self.server == other.server
and self.ipv4 == other.ipv4
and self.ipv6 == other.ipv6
and self.port == other.port
and self.path == other.path
)
def __hash__(self) -> int:
return hash((self.server, self.ipv4, self.ipv6, self.port))
return hash(
(self.flags, self.server, self.ipv4, self.ipv6, self.port, self.path)
)
# required to type hint cls in classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment