Make FileHelpEntry hashable so it does not fail equality checks

This commit is contained in:
A Rodian Jedi 2024-10-26 21:39:57 -06:00
parent 88afac2874
commit 0a89820aa4

View file

@ -120,6 +120,9 @@ class FileHelpEntry:
def __repr__(self):
return f"<FileHelpEntry {self.key}>"
def __hash__(self):
return hash((self.key, self.help_category, self.lock_storage))
@lazy_property
def locks(self):
return LockHandler(self)