diff --git a/llvm_diagnostics/messages.py b/llvm_diagnostics/messages.py index 9a19350..1d539ca 100644 --- a/llvm_diagnostics/messages.py +++ b/llvm_diagnostics/messages.py @@ -33,6 +33,9 @@ def end(self): """Returns the last index of the Range""" return self.start + self.range + def __hash__(self): + return hash((self.start, self.range)) + @dataclass class __Message(Exception): # pylint: disable=C0103