Skip to content

Commit 58dff41

Browse files
soooojinleeclaude
andcommitted
fix: Fix mypy type error in nested collection proto construction
Use getattr/CopyFrom instead of **dict unpacking for ProtoValue construction to satisfy mypy's strict type checking. Signed-off-by: soojin <soojin@dable.io> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: soojin <soojin@dable.io>
1 parent c32682b commit 58dff41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/python/feast/type_map.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,8 @@ def _convert_nested_collection_to_proto(
10311031
)
10321032
inner_values.append(proto_vals[0])
10331033
repeated = RepeatedValue(val=inner_values)
1034-
proto = ProtoValue(**{val_attr: repeated})
1034+
proto = ProtoValue()
1035+
getattr(proto, val_attr).CopyFrom(repeated)
10351036
result.append(proto)
10361037
return result
10371038

0 commit comments

Comments
 (0)