Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Arceo <[email protected]>
  • Loading branch information
franciscojavierarceo committed Jan 24, 2025
1 parent 4abbf16 commit ef9cb7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/key_encoding_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def deserialize_entity_key(
num_keys = struct.unpack_from("<I", serialized_entity_key, offset)[0]
offset += 4

for _ in range(num_keys):
for _ in range(num_keys):
key_type = struct.unpack_from("<I", serialized_entity_key, offset)[0]
offset += 4

Expand Down
6 changes: 3 additions & 3 deletions sdk/python/tests/unit/infra/test_key_encoding_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ def test_deserialize_entity_key():
join_keys=["user"], entity_values=[ValueProto(int64_val=int(2**15))]
)


def test_deserialize_multiple_entity_keys():
entity_key_proto = EntityKeyProto(
join_keys=["customer", "user"],
entity_values=[ValueProto(string_val="test"), ValueProto(int64_val=int(2**15))]
join_keys=["customer", "user"],
entity_values=[ValueProto(string_val="test"), ValueProto(int64_val=int(2**15))],
)

serialized_entity_key = serialize_entity_key(
Expand All @@ -69,7 +70,6 @@ def test_deserialize_multiple_entity_keys():
assert deserialized_entity_key == entity_key_proto



def test_serialize_value():
v, t = _serialize_val("string_val", ValueProto(string_val="test"))
assert t == ValueType.STRING
Expand Down

0 comments on commit ef9cb7b

Please sign in to comment.