Skip to content
Prev Previous commit
Next Next commit
fix doc
Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
  • Loading branch information
HaoXuAI committed Jul 13, 2025
commit af000e7a35d09a5c6b1eb5336cb54d5482409e58
12 changes: 9 additions & 3 deletions sdk/python/feast/feature_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ def to_proto(self) -> FeatureViewProto:
"""
return self._to_proto_internal(seen={})

def _to_proto_internal(self, seen: Dict[str, Union[None, FeatureViewProto]]) -> FeatureViewProto:
def _to_proto_internal(
self, seen: Dict[str, Union[None, FeatureViewProto]]
) -> FeatureViewProto:
if self.name in seen:
if seen[self.name] is None:
raise ValueError(
Expand All @@ -393,7 +395,9 @@ def _to_proto_internal(self, seen: Dict[str, Union[None, FeatureViewProto]]) ->
seen[self.name] = proto
return proto

def to_proto_spec(self, seen: Dict[str, Union[None, FeatureViewProto]]) -> FeatureViewSpecProto:
def to_proto_spec(
self, seen: Dict[str, Union[None, FeatureViewProto]]
) -> FeatureViewSpecProto:
ttl_duration = self.get_ttl_duration()

batch_source_proto = None
Expand Down Expand Up @@ -452,7 +456,9 @@ def from_proto(cls, feature_view_proto: FeatureViewProto) -> "FeatureView":

@classmethod
def _from_proto_internal(
cls, feature_view_proto: FeatureViewProto, seen: Dict[str, Union[None, "FeatureView"]]
cls,
feature_view_proto: FeatureViewProto,
seen: Dict[str, Union[None, "FeatureView"]],
) -> "FeatureView":
"""
Creates a feature view from a protobuf representation of a feature view.
Expand Down
Loading