MCPcopy
hub / github.com/plotly/dash / g

Function g

components/dash-table/tests/selenium/conftest.py:79–93  ·  view source on GitHub ↗
(*a, **kw)

Source from the content-addressed store, hash-verified

77
78 @wraps(f)
79 def g(*a, **kw):
80 args = inspect.getcallargs(f, *a, **kw)
81 for (appargs, _, p) in precinfo:
82 if not p(*[args[aa] for aa in appargs]):
83 raise PreconditionError(
84 "Precondition failed in call {!r}{}:\n {!s}\n".format(
85 g,
86 inspect.formatargvalues(
87 fspec.args, fspec.varargs, fspec.varkw, args
88 ),
89 stripped_source(p),
90 )
91 )
92
93 return f(*a, **kw)
94
95 g.nopre = f
96 return g

Callers

nothing calls this directly

Calls 4

PreconditionErrorClass · 0.85
pFunction · 0.50
fFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected