Merge pull request #3657 from a-rodian-jedi/filehelpentry-hashable

Make FileHelpEntry hashable so it does not fail equality checks
This commit is contained in:
Griatch 2024-10-28 19:07:13 +01:00 committed by GitHub
commit bf62e5bb9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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