(self, obj: Any, data: dict)
| 85 | return new_obj |
| 86 | |
| 87 | def update_object(self, obj: Any, data: dict): |
| 88 | dumped_obj = obj.schema.dump(obj) |
| 89 | for key, value in dumped_obj.items(): |
| 90 | if key not in data: |
| 91 | data[key] = value |
| 92 | return self.replace_object(obj, data) |
| 93 | |
| 94 | def replace_object(self, obj: Any, data: dict): |
| 95 | new_obj = obj.schema.load(data) |
no test coverage detected