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:
parent
3fbee2707b
commit
f4b19fee5c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user