Skip to content

Commit

Permalink
Fix __getitem__ return for feature view and on-demand feature view (#…
Browse files Browse the repository at this point in the history
…1936)

Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
  • Loading branch information
mavysavydav authored and felixwang9817 committed Oct 28, 2021
1 parent e30c122 commit 110f458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/python/feast/feature_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def __getitem__(self, item):
cp = self.__copy__()
cp.projection.features = referenced_features

return self
return cp

def __eq__(self, other):
if not isinstance(other, FeatureView):
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/feast/on_demand_feature_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __getitem__(self, item):
cp = self.__copy__()
cp.projection.features = referenced_features

return self
return cp

def with_name(self, name: str):
"""
Expand Down

0 comments on commit 110f458

Please sign in to comment.