We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8845166 commit ac2cdecCopy full SHA for ac2cdec
src/idom/backend/_common.py
@@ -4,7 +4,7 @@
4
import os
5
from dataclasses import dataclass
6
from pathlib import Path, PurePosixPath
7
-from typing import Any, Awaitable, Sequence
+from typing import Any, Awaitable, Sequence, cast
8
9
from asgiref.typing import ASGIApplication
10
from uvicorn.config import Config as UvicornConfig
@@ -100,7 +100,7 @@ def vdom_head_elements_to_html(head: Sequence[VdomDict] | VdomDict | str) -> str
100
return head
101
elif isinstance(head, dict):
102
if head.get("tagName") == "head":
103
- head = {**head, "tagName": ""}
+ head = cast(VdomDict, {**head, "tagName": ""})
104
return vdom_to_html(head)
105
else:
106
return vdom_to_html(html._(head))
0 commit comments