(self, state: InstanceState[Any], dict_: _InstanceDict)
| 1839 | state._modified_event(dict_, self, NO_VALUE, True) |
| 1840 | |
| 1841 | def delete(self, state: InstanceState[Any], dict_: _InstanceDict) -> None: |
| 1842 | if self.key not in dict_: |
| 1843 | return |
| 1844 | |
| 1845 | state._modified_event(dict_, self, NO_VALUE, True) |
| 1846 | |
| 1847 | collection = self.get_collection(state, state.dict) |
| 1848 | collection.clear_with_event() |
| 1849 | |
| 1850 | # key is always present because we checked above. e.g. |
| 1851 | # del is a no-op if collection not present. |
| 1852 | del dict_[self.key] |
| 1853 | |
| 1854 | def _default_value( |
| 1855 | self, state: InstanceState[Any], dict_: _InstanceDict |
nothing calls this directly
no test coverage detected