MCPcopy Index your code
hub / github.com/prometheus/client_python / __call__

Method __call__

prometheus_client/context_managers.py:46–51  ·  view source on GitHub ↗
(self, f: "F")

Source from the content-addressed store, hash-verified

44 self._gauge.dec()
45
46 def __call__(self, f: "F") -> "F":
47 def wrapped(func, *args, **kwargs):
48 with self:
49 return func(*args, **kwargs)
50
51 return decorate(f, wrapped)
52
53
54class Timer:

Callers

nothing calls this directly

Calls 1

decorateFunction · 0.85

Tested by

no test coverage detected