Skip to content

Commit 55ae546

Browse files
committed
More accurate types on _component_to_vdom
1 parent a27a00f commit 55ae546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reactpy/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def _component_to_vdom(component: ComponentType) -> VdomDict | str | None:
254254
result = component.render()
255255
if hasattr(result, "render"):
256256
result = _component_to_vdom(cast(ComponentType, result))
257-
return cast(VdomDict, result)
257+
return cast(VdomDict | str | None, result)
258258

259259

260260
def del_html_head_body_transform(vdom: VdomDict) -> VdomDict:

0 commit comments

Comments
 (0)