diff --git a/src/idom/html.py b/src/idom/html.py index c3a305190..622ebf0ff 100644 --- a/src/idom/html.py +++ b/src/idom/html.py @@ -278,8 +278,7 @@ ) -@custom_vdom_constructor -def _( +def _fragment( attributes: VdomAttributes, children: Sequence[VdomChild], key: Key | None, @@ -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") @@ -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, @@ -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")