File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -166,26 +166,6 @@ def get_prop_typing(
166
166
return prop_type
167
167
168
168
169
- def generate_plotly_figure (* _ ):
170
- custom_imports ["dash_core_components" ]["Graph" ].append (
171
- "from plotly.graph_objects import Figure"
172
- )
173
- return "typing.Union[Figure, dict]"
174
-
175
-
176
- def generate_datetime_prop (component , array = False ):
177
- if "import datetime" not in custom_imports ["dash_core_components" ][component ]:
178
- custom_imports ["dash_core_components" ][component ].append ("import datetime" )
179
-
180
- def generator (* _ ):
181
- datetime_type = "typing.Union[str, datetime.datetime]"
182
- if array :
183
- datetime_type = f"typing.Sequence[{ datetime_type } ]"
184
- return datetime_type
185
-
186
- return generator
187
-
188
-
189
169
PROP_TYPING = {
190
170
"array" : generate_type ("typing.Sequence" ),
191
171
"arrayOf" : generate_array_of ,
You can’t perform that action at this time.
0 commit comments