From 0a89820aa487445f43746a3451ff9d352ac0e534 Mon Sep 17 00:00:00 2001 From: A Rodian Jedi Date: Sat, 26 Oct 2024 21:39:57 -0600 Subject: [PATCH 1/2] 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) From 678c61d67663a35cffd5ec5dae8ba837b6bc83b0 Mon Sep 17 00:00:00 2001 From: Sheridan Roberts <133955222+a-rodian-jedi@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:40:25 -0600 Subject: [PATCH 2/2] Update filehelp.py --- evennia/help/filehelp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/help/filehelp.py b/evennia/help/filehelp.py index 2af67c3f17..ff2d18f6b8 100644 --- a/evennia/help/filehelp.py +++ b/evennia/help/filehelp.py @@ -121,7 +121,7 @@ class FileHelpEntry: return f"" def __hash__(self): - return hash((self.key, self.help_category, self.lock_storage)) + return hash(self.key) @lazy_property def locks(self):