Skip to content

Commit b2e37ff

Browse files
chore: Use Safeload (#5643)
* chore: Updating sphinx documentation Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> * chore: Use safe load Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> --------- Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 5e4b9fd commit b2e37ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sdk/python/feast/infra/compute_engines/kubernetes/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def run(self):
6767
logging.basicConfig(level=logging.INFO)
6868

6969
with open("/var/feast/feature_store.yaml") as f:
70-
feast_config = yaml.load(f, Loader=yaml.Loader)
70+
feast_config = yaml.safe_load(f)
7171

7272
with open("/var/feast/materialization_config.yaml") as b:
73-
materialization_cfg = yaml.load(b, Loader=yaml.Loader)
73+
materialization_cfg = yaml.safe_load(b)
7474

7575
config = RepoConfig(**feast_config)
7676
store = FeatureStore(config=config)

sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class FeatureServiceSpec(google.protobuf.message.Message):
7171
"""Name of Feast project that this Feature Service belongs to."""
7272
@property
7373
def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureViewProjection_pb2.FeatureViewProjection]:
74-
"""Represents a projection that's to be applied on top of the FeatureView.
74+
"""Represents a projection that's to be applied on top of the FeatureView.
7575
Contains data such as the features to use from a FeatureView.
7676
"""
7777
@property

0 commit comments

Comments
 (0)