Skip to content

Commit a135e04

Browse files
committed
update proto in base type _update method
1 parent 292fb4f commit a135e04

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • python/lib/sift_client/sift_types

python/lib/sift_client/sift_types/_base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def _update(self, other: BaseType[ProtoT, SelfT]) -> BaseType[ProtoT, SelfT]:
5050
for key in other.__class__.model_fields.keys():
5151
if key in self.model_fields:
5252
self.__dict__.update({key: getattr(other, key)})
53+
54+
# Make sure we also update the proto since it is excluded
55+
self.__dict__["proto"] = other.proto
5356
return self
5457

5558

0 commit comments

Comments
 (0)