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

Method __exit__

prometheus_client/context_managers.py:23–26  ·  view source on GitHub ↗
(self, typ: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType])

Source from the content-addressed store, hash-verified

21 pass
22
23 def __exit__(self, typ: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]) -> Literal[False]:
24 if isinstance(value, self._exception):
25 self._counter.inc()
26 return False
27
28 def __call__(self, f: "F") -> "F":
29 def wrapped(func, *args, **kwargs):

Callers

nothing calls this directly

Calls 1

incMethod · 0.45

Tested by

no test coverage detected