diff --git a/artiq/compiler/types.py b/artiq/compiler/types.py index 05640b2ae..be76adf5a 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")