Skip to content

Commit c28a58c

Browse files
Fix python Value equality (#817)
## Usage and product changes Fixes the implementation of `__eq__` in `_Value` to use `try_get_value_type` instead of the non-existent `get_value_type`
1 parent aec7b69 commit c28a58c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/typedb/concept/value/value.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __str__(self):
115115
def __eq__(self, other):
116116
if other is self:
117117
return True
118-
if not other or type(self) is not type(other) or self.get_value_type() != other.get_value_type():
118+
if not other or type(self) is not type(other) or self.try_get_value_type() != other.try_get_value_type():
119119
return False
120120
return self.get() == other.get()
121121

0 commit comments

Comments
 (0)