MCPcopy
hub / github.com/pallets/werkzeug / wrapper

Function wrapper

src/werkzeug/datastructures/mixins.py:232–240  ·  view source on GitHub ↗
(
        self: UpdateDictMixin[t.Any, t.Any], /, *args: t.Any, **kwargs: t.Any
    )

Source from the content-addressed store, hash-verified

230
231def _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

Calls 2

fFunction · 0.85
on_updateMethod · 0.45

Tested by

no test coverage detected