MCPcopy Index your code
hub / github.com/plotly/dash / wrapper

Function wrapper

dash/development/base_component.py:496–504  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

494 varnames = func.__code__.co_varnames
495
496 def wrapper(*args, **kwargs):
497 if "_explicit_args" in kwargs:
498 raise Exception("Variable _explicit_args should not be set.")
499 kwargs["_explicit_args"] = list(
500 set(list(varnames[: len(args)]) + [k for k, _ in kwargs.items()])
501 )
502 if "self" in kwargs["_explicit_args"]:
503 kwargs["_explicit_args"].remove("self")
504 return func(*args, **kwargs)
505
506 new_sig = inspect.signature(wrapper).replace(
507 parameters=list(inspect.signature(func).parameters.values())

Callers

nothing calls this directly

Calls 3

funcFunction · 0.85
setFunction · 0.50
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…