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

Method __init__

tests/integration/test_legacy_components.py:32–46  ·  view source on GitHub ↗
(self, id=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs)

Source from the content-addressed store, hash-verified

30
31 @_explicitize_args
32 def __init__(self, id=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
33 self._prop_names = ["id", "style", "value"]
34 self._type = "MyStandardComponent"
35 self._namespace = "dash_generator_test_component_standard"
36 self._valid_wildcard_attributes = []
37 self.available_properties = ["id", "style", "value"]
38 self.available_wildcard_properties = []
39 _explicit_args = kwargs.pop("_explicit_args")
40 _locals = locals()
41 _locals.update(kwargs) # For wildcard attrs and excess named props
42 args = {k: _locals[k] for k in _explicit_args if k != "children"}
43 for k in []:
44 if k not in args:
45 raise TypeError("Required argument `" + k + "` was not specified.")
46 super(PreCAPLegacyComponent, self).__init__(**args)
47
48
49def test_leg001_legacy_pre_component_as_props(dash_duo):

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected