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

Function dispatch_info

prometheus_client/decorator.py:392–400  ·  view source on GitHub ↗

An utility to introspect the dispatch algorithm

(*types)

Source from the content-addressed store, hash-verified

390 return dec
391
392 def dispatch_info(*types):
393 """
394 An utility to introspect the dispatch algorithm
395 """
396 check(types)
397 lst = []
398 for anc in itertools.product(*ancestors(*types)):
399 lst.append(tuple(a.__name__ for a in anc))
400 return lst
401
402 def _dispatch(dispatch_args, *args, **kw):
403 types = tuple(type(arg) for arg in dispatch_args)

Callers

nothing calls this directly

Calls 2

checkFunction · 0.85
ancestorsFunction · 0.85

Tested by

no test coverage detected