diff --git a/sopel/tools/memories.py b/sopel/tools/memories.py index c1afa4345..69545d3c1 100644 --- a/sopel/tools/memories.py +++ b/sopel/tools/memories.py @@ -273,3 +273,11 @@ def __ior__(self, other): return NotImplemented self.update(other) return self + + def __eq__(self, other): + if not isinstance(other, dict): + return NotImplemented + return super().__eq__(other) + + def __ne__(self, other): + return not self.__eq__(other)