diff --git a/python/typedb/concept/value/value.py b/python/typedb/concept/value/value.py index 5a77d36381..a6b7b4e136 100644 --- a/python/typedb/concept/value/value.py +++ b/python/typedb/concept/value/value.py @@ -115,7 +115,7 @@ def __str__(self): def __eq__(self, other): if other is self: return True - if not other or type(self) is not type(other) or self.get_value_type() != other.get_value_type(): + if not other or type(self) is not type(other) or self.try_get_value_type() != other.try_get_value_type(): return False return self.get() == other.get()