Subclasses should call this method whenever change events occur.
(self)
| 753 | return {attribute.key}.union(attribute.property._attribute_keys) |
| 754 | |
| 755 | def changed(self) -> None: |
| 756 | """Subclasses should call this method whenever change events occur.""" |
| 757 | |
| 758 | for parent, key in self._parents.items(): |
| 759 | prop = parent.mapper.get_property(key) |
| 760 | for value, attr_name in zip( |
| 761 | prop._composite_values_from_instance(self), |
| 762 | prop._attribute_keys, |
| 763 | ): |
| 764 | setattr(parent.obj(), attr_name, value) |
| 765 | |
| 766 | |
| 767 | def _setup_composite_listener() -> None: |
nothing calls this directly
no test coverage detected