summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/function.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py
index 4f01fc29..62a5dc0c 100644
--- a/python/function.py
+++ b/python/function.py
@@ -200,6 +200,9 @@ class FunctionViewType:
self.view_type = FunctionGraphType.HighLevelLanguageRepresentationFunctionGraph
self.name = str(view_type)
+ def __hash__(self):
+ return hash((self.view_type, self.name))
+
@staticmethod
def _from_core_struct(view_type: core.BNFunctionViewType) -> 'FunctionViewType':
if view_type.type == FunctionGraphType.HighLevelLanguageRepresentationFunctionGraph: