From b8eeaa9e58b21017d08bbd54fb7de57714b4af0d Mon Sep 17 00:00:00 2001 From: Mark <16909269+Archmonger@users.noreply.github.com> Date: Thu, 23 Feb 2023 10:56:02 -0800 Subject: [PATCH] Fix pylint issues (#937) * Fix pylint issues * Add fixme --- src/idom/html.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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")