diff --git a/datatypes.py b/datatypes.py index 05996a2..c03094b 100644 --- a/datatypes.py +++ b/datatypes.py @@ -31,7 +31,7 @@ class Variable: if self.type == value.type: object.__setattr__(self, name, value) else: - raise ValueError( + raise TypeError( "Type inequality; cannot assign value of " f"type {value.type} to variable of type {self.type}" )