Implement `Structure.__hash__()`

pull/1535/head
webthethird 2 years ago
parent 570501814b
commit 1d6efae4e8
  1. 3
      slither/core/declarations/structure.py

@ -62,3 +62,6 @@ class Structure(SourceMapping):
if str(other_elem.type) != str(elem.type) or other_elem.name != elem.name:
return False
return self.name == other.name
def __hash__(self):
return hash(self.name)

Loading…
Cancel
Save