Skip to content

Commit 6a672df

Browse files
jahstreettqtensor
authored andcommitted
fix: Handle ComplexFeastType to None comparison (feast-dev#3876)
Signed-off-by: Aliaksandr Sasnouskikh <[email protected]>
1 parent a899143 commit 6a672df

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

sdk/python/feast/types.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ def __hash__(self):
5050
return hash(self.to_value_type().value)
5151

5252
def __eq__(self, other):
53-
return self.to_value_type() == other.to_value_type()
53+
if isinstance(other, ComplexFeastType):
54+
return self.to_value_type() == other.to_value_type()
55+
else:
56+
return False
5457

5558

5659
class PrimitiveFeastType(Enum):

0 commit comments

Comments
 (0)