diff --git a/artiq/compiler/types.py b/artiq/compiler/types.py index e1781116e..17d7f1049 100644 --- a/artiq/compiler/types.py +++ b/artiq/compiler/types.py @@ -194,6 +194,9 @@ class TTuple(Type): def __ne__(self, other): return not (self == other) + def __hash__(self): + return hash(tuple(self.elts)) + class _TPointer(TMono): def __init__(self): super().__init__("pointer")