Method
fire_replace_event
(
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, |
Tested by
no test coverage detected