Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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>
  • Loading branch information
2 people authored and ntkathole committed Apr 2, 2026
commit 36fdf4e4be14575717519db2598dd19dbfe6aef6
3 changes: 2 additions & 1 deletion sdk/python/feast/type_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,8 @@ def _convert_nested_collection_to_proto(
)
inner_values.append(proto_vals[0])
repeated = RepeatedValue(val=inner_values)
proto = ProtoValue(**{val_attr: repeated})
proto = ProtoValue()
getattr(proto, val_attr).CopyFrom(repeated)
result.append(proto)
return result

Expand Down