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

Function generate_conditional_style

components/dash-table/dash_prop_typing.py:6–17  ·  view source on GitHub ↗
(type_info, component_name, prop_name)

Source from the content-addressed store, hash-verified

4
5
6def generate_conditional_style(type_info, component_name, prop_name):
7 condition_type = get_prop_typing(
8 type_info["value"]["name"],
9 component_name,
10 prop_name,
11 type_info["value"],
12 )
13 return (
14 "typing.Sequence["
15 f"typing.Union[{condition_type}, typing.Dict[str, typing.Any]]"
16 "]"
17 )
18
19
20custom_props = {

Callers

nothing calls this directly

Calls 1

get_prop_typingFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…