[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2024-04-03 22:57:01 +00:00
parent 80529cae71
commit d7ac58d18d
13 changed files with 9 additions and 22 deletions

View File

@@ -2,7 +2,6 @@ import sys
import js as globalThis
from polyscript import js_modules
from pyscript.util import NotSupported
RUNNING_IN_WORKER = not hasattr(globalThis, "document")

View File

@@ -1,5 +1,4 @@
from pyodide.ffi import to_js
from pyscript import window

View File

@@ -2,9 +2,8 @@ import inspect
import sys
from textwrap import dedent
from pyweb import JSProperty, pydom
from pyscript import document, when, window
from pyweb import JSProperty, pydom
#: A flag to show if MicroPython is the current Python interpreter.
is_micropython = "MicroPython" in sys.version

View File

@@ -1,10 +1,9 @@
"""Markdown module to generate web/HTML components from Markdown code"""
from pyscript import document, window
from pyweb import pydom
from pyweb.ui.elements import TextElementBase, script
from pyscript import document, window
class markdown(TextElementBase):
"""Markdown component to render HTML from Markdown code"""

View File

@@ -1,11 +1,10 @@
import string
from textwrap import dedent
from pyscript import document, when, window
from pyweb import JSProperty, pydom
from pyweb.ui import elements as el
from pyscript import document, when, window
class ShoeBase(el.ElementBase):
tag = "div"