Skip to content

Commit

Permalink
Handle ComplexFeastType to None comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jahstreet authored Jan 5, 2024
1 parent 052182b commit 7462b5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/python/feast/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def __hash__(self):
return hash(self.to_value_type().value)

def __eq__(self, other):
return self.to_value_type() == other.to_value_type()
if isinstance(other, ComplexFeastType):
return self.to_value_type() == other.to_value_type()
else:
return False


class PrimitiveFeastType(Enum):
Expand Down

0 comments on commit 7462b5c

Please sign in to comment.