mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 15:07:16 +02:00
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):
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue