File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -156,24 +156,24 @@ def _etree_to_vdom(
156
156
return el
157
157
158
158
159
- def _add_vdom_to_etree (parent : etree ._Element , node : VdomDict | dict [str , Any ]) -> None :
159
+ def _add_vdom_to_etree (parent : etree ._Element , vdom : VdomDict | dict [str , Any ]) -> None :
160
160
try :
161
- tag = node ["tagName" ]
161
+ tag = vdom ["tagName" ]
162
162
except KeyError as e :
163
- msg = f"Expected a VDOM dict, not { type (node )} "
163
+ msg = f"Expected a VDOM dict, not { type (vdom )} "
164
164
raise TypeError (msg ) from e
165
165
else :
166
- node = cast (VdomDict , node )
166
+ vdom = cast (VdomDict , vdom )
167
167
168
168
if tag :
169
169
element = etree .SubElement (parent , tag )
170
170
element .attrib .update (
171
- _vdom_attr_to_html_str (k , v ) for k , v in node .get ("attributes" , {}).items ()
171
+ _vdom_attr_to_html_str (k , v ) for k , v in vdom .get ("attributes" , {}).items ()
172
172
)
173
173
else :
174
174
element = parent
175
175
176
- for c in node .get ("children" , []):
176
+ for c in vdom .get ("children" , []):
177
177
if hasattr (c , "render" ):
178
178
c = _component_to_vdom (cast (ComponentType , c ))
179
179
if isinstance (c , dict ):
You can’t perform that action at this time.
0 commit comments