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

Function _explicitize_args

dash/development/base_component.py:493–510  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

491# This is then checked in the generated init to check if required
492# props were provided.
493def _explicitize_args(func):
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())
508 )
509 wrapper.__signature__ = new_sig # type: ignore[reportFunctionMemberAccess]
510 return wrapper

Callers 15

DataTable.pyFile · 0.90
Tbody.pyFile · 0.90
Font.pyFile · 0.90
Frameset.pyFile · 0.90
Meta.pyFile · 0.90
Figure.pyFile · 0.90
Dfn.pyFile · 0.90
Li.pyFile · 0.90
Keygen.pyFile · 0.90
Kbd.pyFile · 0.90
H1.pyFile · 0.90
Noscript.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…