mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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:
commit
bf62e5bb9d
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue