Skip to content

Commit feacab2

Browse files
committed
fix regression
1 parent 3bc0c2d commit feacab2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • python/lib/sift_client/sift_types

python/lib/sift_client/sift_types/_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ def _update(self, other: BaseType[ProtoT, SelfT]) -> BaseType[ProtoT, SelfT]:
5858
for key in other.__class__.model_fields.keys():
5959
if key in self.model_fields:
6060
self.__dict__.update({key: getattr(other, key)})
61-
return self
6261

6362
# Make sure we also update the proto since it is excluded
6463
self.__dict__["proto"] = other.proto
6564

65+
return self
66+
6667
@model_validator(mode="after")
6768
def _validate_timezones(self):
6869
"""Validate datetime fiels have timezone information."""

0 commit comments

Comments
 (0)