Draft: Identity.__hash__ and Path.__hash__
This commit is contained in:
parent
a0901a76de
commit
9517f53473
@ -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…
Reference in New Issue
Block a user