Skip to content

Commit 0ece970

Browse files
committed
Remove useless super delegation
Fixes (pylint warning): W0235: Useless super delegation in method '__hash__'
1 parent e2e2132 commit 0ece970

File tree

6 files changed

+0
-18
lines changed

6 files changed

+0
-18
lines changed

pygccxml/declarations/calldef_members.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ def __eq__(self, other):
6262
and self.has_static == other.has_static \
6363
and self.has_const == other.has_const
6464

65-
def __hash__(self):
66-
return super(member_calldef_t, self).__hash__()
67-
6865
@property
6966
def virtuality(self):
7067
"""Describes the "virtuality" of the member (as defined by the

pygccxml/declarations/cpptypes.py

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

929-
def __hash__(self):
930-
return super(type_qualifiers_t, self).__hash__()
931-
932929
def __ne__(self, other):
933930
return not self.__eq__(other)
934931

pygccxml/declarations/enumeration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ def __eq__(self, other):
5151
return False
5252
return self.values == other.values
5353

54-
def __hash__(self):
55-
return super(enumeration_t, self).__hash__()
56-
5754
def _get__cmp__items(self):
5855
"""implementation details"""
5956
return [self.values]

pygccxml/declarations/scopedef.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ def __eq__(self, other):
187187
return False
188188
return self.declarations[:].sort() == other.declarations[:].sort()
189189

190-
def __hash__(self):
191-
return super(scopedef_t, self).__hash__()
192-
193190
def _get_declarations_impl(self):
194191
raise NotImplementedError()
195192

pygccxml/declarations/typedef.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ def __eq__(self, other):
3333
return False
3434
return self.decl_type == other.decl_type
3535

36-
def __hash__(self):
37-
return super(typedef_t, self).__hash__()
38-
3936
@property
4037
def decl_type(self):
4138
"""reference to the original :class:`decl_type <type_t>`"""

pygccxml/declarations/variable.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ def __eq__(self, other):
4545
and self.value == other.value \
4646
and self.bits == other.bits
4747

48-
def __hash__(self):
49-
return super(variable_t, self).__hash__()
50-
5148
@property
5249
def decl_type(self):
5350
"""reference to the variable :class:`decl_type <type_t>`"""

0 commit comments

Comments
 (0)