Make FileHelpEntry hashable so it does not fail equality checks
This commit is contained in:
parent
88afac2874
commit
0a89820aa4
1 changed files with 3 additions and 0 deletions
|
|
@ -120,6 +120,9 @@ class FileHelpEntry:
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"<FileHelpEntry {self.key}>"
|
return f"<FileHelpEntry {self.key}>"
|
||||||
|
|
||||||
|
def __hash__(self):
|
||||||
|
return hash((self.key, self.help_category, self.lock_storage))
|
||||||
|
|
||||||
@lazy_property
|
@lazy_property
|
||||||
def locks(self):
|
def locks(self):
|
||||||
return LockHandler(self)
|
return LockHandler(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue