[datatypes.py] Changed ValueError to TypeError

master
Ruben Dahl 2023-04-09 20:15:24 +02:00
parent aa8d03d296
commit df54cf9721
No known key found for this signature in database
GPG Key ID: D9B193810A18673E
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class Variable:
if self.type == value.type: if self.type == value.type:
object.__setattr__(self, name, value) object.__setattr__(self, name, value)
else: else:
raise ValueError( raise TypeError(
"Type inequality; cannot assign value of " "Type inequality; cannot assign value of "
f"type {value.type} to variable of type {self.type}" f"type {value.type} to variable of type {self.type}"
) )