Skip to content

Commit def0617

Browse files
committed
fix type anno
1 parent 7ba546c commit def0617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/idom/backend/_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
from dataclasses import dataclass
66
from pathlib import Path, PurePosixPath
7-
from typing import Any, Awaitable, Sequence
7+
from typing import Any, Awaitable, Sequence, cast
88

99
from asgiref.typing import ASGIApplication
1010
from uvicorn.config import Config as UvicornConfig
@@ -100,7 +100,7 @@ def vdom_head_elements_to_html(head: Sequence[VdomDict] | VdomDict | str) -> str
100100
return head
101101
elif isinstance(head, dict):
102102
if head.get("tagName") == "head":
103-
head = {**head, "tagName": ""}
103+
head = cast(VdomDict, {**head, "tagName": ""})
104104
return vdom_to_html(head)
105105
else:
106106
return vdom_to_html(html._(head))

0 commit comments

Comments
 (0)