MCPcopy Create free account
hub / github.com/feast-dev/feast / __copy__

Method __copy__

sdk/python/feast/labeling/label_view.py:200–220  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 return super().__hash__()
199
200 def __copy__(self):
201 lv = LabelView(
202 name=self.name,
203 ttl=self.ttl,
204 source=self.source,
205 schema=self.schema,
206 tags=self.tags,
207 online=self.online,
208 description=self.description,
209 owner=self.owner,
210 labeler_field=self.labeler_field,
211 conflict_policy=self.conflict_policy,
212 reference_feature_view=self.reference_feature_view or None,
213 )
214 lv.entities = list(self.entities)
215 lv.features = copy.copy(self.features)
216 lv.entity_columns = copy.copy(self.entity_columns)
217 lv.projection = copy.copy(self.projection)
218 lv.version = self.version
219 lv.current_version_number = self.current_version_number
220 return lv
221
222 def __eq__(self, other):
223 if not isinstance(other, LabelView):

Callers 2

apply_feature_viewMethod · 0.45
apply_feature_viewMethod · 0.45

Calls 1

LabelViewClass · 0.85

Tested by

no test coverage detected