2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

compiler.types: make TValue hashable.

This commit is contained in:
whitequark 2015-12-18 17:31:20 +08:00
parent 3fbee2707b
commit f4b19fee5c

View File

@ -491,6 +491,9 @@ class TValue(Type):
def __ne__(self, other):
return not (self == other)
def __hash__(self):
return hash(self.value)
class TDelay(Type):
"""
The type-level representation of IO delay.