Skip to content

Commit

Permalink
fix: Handle ComplexFeastType to None comparison (#3876)
Browse files Browse the repository at this point in the history
Signed-off-by: Aliaksandr Sasnouskikh <jahstreetlove@gmail.com>
  • Loading branch information
jahstreet committed Mar 7, 2024
1 parent 817995c commit fa8492d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/python/feast/types.py
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 fa8492d

Please sign in to comment.