Skip to content

Commit b8eeaa9

Browse files
authored
Fix pylint issues (#937)
* Fix pylint issues * Add fixme
1 parent e8263de commit b8eeaa9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/idom/html.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@
278278
)
279279

280280

281-
@custom_vdom_constructor
282-
def _(
281+
def _fragment(
283282
attributes: VdomAttributes,
284283
children: Sequence[VdomChild],
285284
key: Key | None,
@@ -299,6 +298,10 @@ def _(
299298
return model
300299

301300

301+
# FIXME: https://github.com/PyCQA/pylint/issues/5784
302+
_ = custom_vdom_constructor(_fragment)
303+
304+
302305
# Dcument metadata
303306
base = make_vdom_constructor("base")
304307
head = make_vdom_constructor("head")
@@ -394,8 +397,7 @@ def _(
394397
noscript = make_vdom_constructor("noscript")
395398

396399

397-
@custom_vdom_constructor
398-
def script(
400+
def _script(
399401
attributes: VdomAttributes,
400402
children: Sequence[VdomChild],
401403
key: Key | None,
@@ -440,6 +442,9 @@ def script(
440442
return model
441443

442444

445+
# FIXME: https://github.com/PyCQA/pylint/issues/5784
446+
script = custom_vdom_constructor(_script)
447+
443448
# Demarcating edits
444449
del_ = make_vdom_constructor("del")
445450
ins = make_vdom_constructor("ins")

0 commit comments

Comments
 (0)