Skip to content

Commit 5346326

Browse files
committed
Implement __hash__ method for type_qualifiers_t class
1 parent eab55c9 commit 5346326

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pygccxml/declarations/cpptypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,8 @@ def __eq__(self, other):
926926
and self.has_extern == other.has_extern \
927927
and self.has_mutable == other.has_mutable
928928

929+
__hash__ = object.__hash__
930+
929931
def __ne__(self, other):
930932
return not self.__eq__(other)
931933

0 commit comments

Comments
 (0)