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

Function required_props

dash/development/_py_components_generation.py:347–357  ·  view source on GitHub ↗

Pull names of required props from the props object. Parameters ---------- props: dict Returns ------- list List of prop names (str) that are required for the Component

(props)

Source from the content-addressed store, hash-verified

345
346
347def required_props(props):
348 """Pull names of required props from the props object.
349 Parameters
350 ----------
351 props: dict
352 Returns
353 -------
354 list
355 List of prop names (str) that are required for the Component
356 """
357 return [prop_name for prop_name, prop in list(props.items()) if prop["required"]]
358
359
360def create_docstring(

Callers 1

generate_class_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…