precommit fixes

This commit is contained in:
Fabio Pliger
2024-01-31 17:31:11 -06:00
parent ac1cf5fe66
commit cffee1d680
12 changed files with 51 additions and 29 deletions

View File

@@ -1,8 +1,9 @@
from textwrap import dedent
from pyscript import document, when, window
from pyweb import JSProperty, js_property, pydom
from pyscript import document, when, window
class ElementBase(pydom.Element):
tag = "div"
@@ -188,7 +189,7 @@ class div(TextElementBase):
class img(ElementBase):
tag = "img"
src = js_property("src")
# TODO: This should probably go on the ElementBase class since it's a global attribtute
# TODO: This should probably go on the ElementBase class since it's a global attribute
# https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/slot
slot = js_property("slot")