From 0a89820aa487445f43746a3451ff9d352ac0e534 Mon Sep 17 00:00:00 2001 From: A Rodian Jedi Date: Sat, 26 Oct 2024 21:39:57 -0600 Subject: [PATCH] Make FileHelpEntry hashable so it does not fail equality checks --- evennia/help/filehelp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evennia/help/filehelp.py b/evennia/help/filehelp.py index 4c9cf3d9f1..2af67c3f17 100644 --- a/evennia/help/filehelp.py +++ b/evennia/help/filehelp.py @@ -120,6 +120,9 @@ class FileHelpEntry: def __repr__(self): return f"" + def __hash__(self): + return hash((self.key, self.help_category, self.lock_storage)) + @lazy_property def locks(self): return LockHandler(self)