Function
wrapper
(
self: UpdateDictMixin[t.Any, t.Any], /, *args: t.Any, **kwargs: t.Any
)
Source from the content-addressed store, hash-verified
| 230 | |
| 231 | def _always_update(f: F) -> F: |
| 232 | def wrapper( |
| 233 | self: UpdateDictMixin[t.Any, t.Any], /, *args: t.Any, **kwargs: t.Any |
| 234 | ) -> t.Any: |
| 235 | rv = f(self, *args, **kwargs) |
| 236 | |
| 237 | if self.on_update is not None: |
| 238 | self.on_update(self) |
| 239 | |
| 240 | return rv |
| 241 | |
| 242 | return update_wrapper(wrapper, f) # type: ignore[return-value] |
| 243 | |
Callers
nothing calls this directly
Tested by
no test coverage detected