MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / fire_replace_event

Method fire_replace_event

lib/sqlalchemy/orm/attributes.py:1314–1326  ·  view source on GitHub ↗
(
        self,
        state: InstanceState[Any],
        dict_: _InstanceDict,
        value: _T,
        previous: Any,
        initiator: Optional[AttributeEventToken],
    )

Source from the content-addressed store, hash-verified

1312 dict_[self.key] = value
1313
1314 def fire_replace_event(
1315 self,
1316 state: InstanceState[Any],
1317 dict_: _InstanceDict,
1318 value: _T,
1319 previous: Any,
1320 initiator: Optional[AttributeEventToken],
1321 ) -> _T:
1322 for fn in self.dispatch.set:
1323 value = fn(
1324 state, value, previous, initiator or self._replace_token
1325 )
1326 return value
1327
1328 def fire_remove_event(
1329 self,

Callers 1

setMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected