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

Function shape_or_exact

dash/development/_py_components_generation.py:651–662  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

649 """Mapping from the PropTypes js type object to the Python type."""
650
651 def shape_or_exact():
652 return "dict with keys:\n" + "\n".join(
653 create_prop_docstring(
654 prop_name=prop_name,
655 type_object=prop,
656 required=prop["required"],
657 description=prop.get("description", ""),
658 default=prop.get("defaultValue"),
659 indent_num=indent_num + 2,
660 )
661 for prop_name, prop in type_object["value"].items()
662 )
663
664 def array_of():
665 inner = js_to_py_type(type_object["value"])

Callers

nothing calls this directly

Calls 2

create_prop_docstringFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…