Skip to content

Commit 9443392

Browse files
committed
lint
Signed-off-by: Danny Chiao <[email protected]>
1 parent b3ad4d7 commit 9443392

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

sdk/python/feast/feature_service.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,14 @@ def infer_features(self, fvs_to_update: Optional[Dict[str, FeatureView]] = None)
109109
for feature_grouping in self._features:
110110
if isinstance(feature_grouping, BaseFeatureView):
111111
# For feature services that depend on an unspecified feature view, apply inferred schema
112-
if len(feature_grouping.projection.features) == 0:
113-
if fvs_to_update is not None:
114-
if feature_grouping.name in fvs_to_update:
115-
feature_grouping.projection.features = fvs_to_update[
116-
feature_grouping.name
117-
].features
112+
if (
113+
fvs_to_update is not None
114+
and len(feature_grouping.projection.features) == 0
115+
and feature_grouping.name in fvs_to_update
116+
):
117+
feature_grouping.projection.features = fvs_to_update[
118+
feature_grouping.name
119+
].features
118120
self.feature_view_projections.append(feature_grouping.projection)
119121
else:
120122
raise ValueError(

0 commit comments

Comments
 (0)