mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 19:28:26 +08:00
compiler.types: add missing TTuple.__hash__ implementation.
This commit is contained in:
parent
90aeb76a2c
commit
37c9b97bc4
@ -194,6 +194,9 @@ class TTuple(Type):
|
|||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
return not (self == other)
|
return not (self == other)
|
||||||
|
|
||||||
|
def __hash__(self):
|
||||||
|
return hash(tuple(self.elts))
|
||||||
|
|
||||||
class _TPointer(TMono):
|
class _TPointer(TMono):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__("pointer")
|
super().__init__("pointer")
|
||||||
|
Loading…
Reference in New Issue
Block a user