Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions src/idom/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@
)


@custom_vdom_constructor
def _(
def _fragment(
attributes: VdomAttributes,
children: Sequence[VdomChild],
key: Key | None,
Expand All @@ -299,6 +298,10 @@ def _(
return model


# FIXME: https://github.com/PyCQA/pylint/issues/5784
_ = custom_vdom_constructor(_fragment)


# Dcument metadata
base = make_vdom_constructor("base")
head = make_vdom_constructor("head")
Expand Down Expand Up @@ -394,8 +397,7 @@ def _(
noscript = make_vdom_constructor("noscript")


@custom_vdom_constructor
def script(
def _script(
attributes: VdomAttributes,
children: Sequence[VdomChild],
key: Key | None,
Expand Down Expand Up @@ -440,6 +442,9 @@ def script(
return model


# FIXME: https://github.com/PyCQA/pylint/issues/5784
script = custom_vdom_constructor(_script)

# Demarcating edits
del_ = make_vdom_constructor("del")
ins = make_vdom_constructor("ins")
Expand Down