From 2eb887d250f1946376bc83305bbc7da5f9d12c6a Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Fri, 26 Aug 2022 16:10:45 -0400 Subject: implement hash for CoreDataVariable --- python/binaryview.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') diff --git a/python/binaryview.py b/python/binaryview.py index efb843c3..aa570de5 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -8657,6 +8657,9 @@ class CoreDataVariable: def __len__(self): return len(self._type) + def __hash__(self): + return hash((self.type, self.address, self.auto_discovered)) + @property def type(self) -> '_types.Type': return self._type -- cgit v1.3.1