From df54cf9721859e678c7d4ccfc1750c69ef28263f Mon Sep 17 00:00:00 2001 From: Ruben Dahl Date: Sun, 9 Apr 2023 20:15:24 +0200 Subject: [PATCH] [datatypes.py] Changed ValueError to TypeError --- datatypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" )