MCPcopy Create free account
hub / github.com/plotly/dash / shape_or_exact

Function shape_or_exact

dash/development/_jl_components_generation.py:126–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 """Mapping from the PropTypes js type object to the Julia type."""
125
126 def shape_or_exact():
127 return "lists containing elements {}.\n{}".format(
128 ", ".join("'{}'".format(t) for t in type_object["value"]),
129 "Those elements have the following types:\n{}".format(
130 "\n".join(
131 create_prop_docstring_jl(
132 prop_name=prop_name,
133 type_object=prop,
134 required=prop["required"],
135 description=prop.get("description", ""),
136 indent_num=1,
137 )
138 for prop_name, prop in type_object["value"].items()
139 )
140 ),
141 )
142
143 return dict(
144 array=lambda: "Array",

Callers

nothing calls this directly

Calls 3

create_prop_docstring_jlFunction · 0.85
formatMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…