Skip to content

Commit 0d4860b

Browse files
jahstreetHaoXuAI
authored andcommitted
fix: Handle ComplexFeastType to None comparison (#3876)
Signed-off-by: Aliaksandr Sasnouskikh <jahstreetlove@gmail.com>
1 parent 39fbd9d commit 0d4860b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)