Receive a 'modified' event. This event is triggered when the :func:`.attributes.flag_modified` function is used to trigger a modify event on an attribute without any specific value being set. .. versionadded:: 1.2 :param target: the object instance receivin
(self, target: _O, initiator: Event)
| 3018 | """ |
| 3019 | |
| 3020 | def modified(self, target: _O, initiator: Event) -> None: |
| 3021 | """Receive a 'modified' event. |
| 3022 | |
| 3023 | This event is triggered when the :func:`.attributes.flag_modified` |
| 3024 | function is used to trigger a modify event on an attribute without |
| 3025 | any specific value being set. |
| 3026 | |
| 3027 | .. versionadded:: 1.2 |
| 3028 | |
| 3029 | :param target: the object instance receiving the event. |
| 3030 | If the listener is registered with ``raw=True``, this will |
| 3031 | be the :class:`.InstanceState` object. |
| 3032 | |
| 3033 | :param initiator: An instance of :class:`.attributes.Event` |
| 3034 | representing the initiation of the event. |
| 3035 | |
| 3036 | .. seealso:: |
| 3037 | |
| 3038 | :class:`.AttributeEvents` - background on listener options such |
| 3039 | as propagation to subclasses. |
| 3040 | |
| 3041 | """ |
| 3042 | |
| 3043 | |
| 3044 | class QueryEvents(event.Events[Query[Any]]): |