Skip to content

Commit de8e4e1

Browse files
committed
Remove f-strings to pass python linting
1 parent 2ef1faf commit de8e4e1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

sdk/python/feast/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def get_batch_features(
585585
# String based source
586586
if not entity_rows.endswith((".avro", "*")):
587587
raise Exception(
588-
f"Only .avro and wildcard paths are accepted as entity_rows"
588+
"Only .avro and wildcard paths are accepted as entity_rows"
589589
)
590590
else:
591591
raise Exception(
@@ -778,7 +778,7 @@ def ingest(
778778
elif isinstance(feature_set, str):
779779
name = feature_set
780780
else:
781-
raise Exception(f"Feature set name must be provided")
781+
raise Exception("Feature set name must be provided")
782782

783783
# Read table and get row count
784784
dir_path, dest_path = _read_table_from_source(source, chunk_size, max_workers)

sdk/python/feast/feature_set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,10 +653,10 @@ def is_valid(self):
653653
"""
654654

655655
if not self.name:
656-
raise ValueError(f"No name found in feature set.")
656+
raise ValueError("No name found in feature set.")
657657

658658
if len(self.entities) == 0:
659-
raise ValueError(f"No entities found in feature set {self.name}")
659+
raise ValueError("No entities found in feature set {self.name}")
660660

661661
def import_tfx_schema(self, schema: schema_pb2.Schema):
662662
"""

0 commit comments

Comments
 (0)