MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / changed

Method changed

lib/sqlalchemy/ext/mutable.py:755–764  ·  view source on GitHub ↗

Subclasses should call this method whenever change events occur.

(self)

Source from the content-addressed store, hash-verified

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
767def _setup_composite_listener() -> None:

Callers

nothing calls this directly

Calls 3

get_propertyMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected