Skip to content

Commit

Permalink
Fix pylint issues (#937)
Browse files Browse the repository at this point in the history
* Fix pylint issues

* Add fixme
  • Loading branch information
Archmonger authored Feb 23, 2023
1 parent e8263de commit b8eeaa9
Showing 1 changed file with 9 additions and 4 deletions.
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

0 comments on commit b8eeaa9

Please sign in to comment.