Skip to content

Commit

Permalink
More accurate types on _component_to_vdom
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Jan 26, 2025
1 parent a27a00f commit 55ae546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reactpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _component_to_vdom(component: ComponentType) -> VdomDict | str | None:
result = component.render()
if hasattr(result, "render"):
result = _component_to_vdom(cast(ComponentType, result))
return cast(VdomDict, result)
return cast(VdomDict | str | None, result)


def del_html_head_body_transform(vdom: VdomDict) -> VdomDict:
Expand Down

0 comments on commit 55ae546

Please sign in to comment.