Draft: Identity.__hash__ and Path.__hash__

dev
Gergely Polonkai 1 year ago
parent a0901a76de
commit 9517f53473
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

@ -168,3 +168,6 @@ class Identity:
return False
return True
def hash(self) -> int:
return hash(str(self))

@ -94,3 +94,6 @@ class Path:
"""Check if path ends with sub"""
return self.path.endswith(sub)
def __hash__(self) -> int:
return hash(self.path)

Loading…
Cancel
Save