diff --git a/alfort_dom/dom.py b/alfort_dom/dom.py index 46abc18..4862ae6 100644 --- a/alfort_dom/dom.py +++ b/alfort_dom/dom.py @@ -9,16 +9,13 @@ class HTMLElement(Protocol): - def focus(self) -> None: - ... + def focus(self) -> None: ... @property - def nodeValue(self) -> str: - ... + def nodeValue(self) -> str: ... @nodeValue.setter - def nodeValue(self, text: str) -> None: - ... + def nodeValue(self, text: str) -> None: ... def dom_effect( diff --git a/docs/examples/todomvc/main.py b/docs/examples/todomvc/main.py index ed76367..be2e139 100755 --- a/docs/examples/todomvc/main.py +++ b/docs/examples/todomvc/main.py @@ -96,8 +96,7 @@ class UpdateEntry: @dataclass(frozen=True) -class Add: - ... +class Add: ... @dataclass(frozen=True) @@ -106,8 +105,7 @@ class Delete: @dataclass(frozen=True) -class DeleteComplete: - ... +class DeleteComplete: ... @dataclass(frozen=True) diff --git a/stubs/pyodide/__init__.pyi b/stubs/pyodide/__init__.pyi index 6ad32a8..ff40492 100755 --- a/stubs/pyodide/__init__.pyi +++ b/stubs/pyodide/__init__.pyi @@ -12,11 +12,17 @@ class JsProxy(Any): self, *, depth: int = ..., - default_converter: Callable[ - ["JsProxy", Callable[["JsProxy"], Any], Callable[["JsProxy", Any], None]], - Any, - ] - | None = ..., + default_converter: ( + Callable[ + [ + "JsProxy", + Callable[["JsProxy"], Any], + Callable[["JsProxy", Any], None], + ], + Any, + ] + | None + ) = ..., ) -> Any: ... def then( self, onfulfilled: Callable[[Any], Any], onrejected: Callable[[Any], Any] @@ -41,10 +47,12 @@ def to_js( pyproxies: JsProxy | None = ..., create_pyproxies: bool = ..., dict_converter: Callable[[Iterable[JsProxy]], JsProxy] | None = ..., - default_converter: Callable[ - [Any, Callable[[Any], JsProxy], Callable[[Any, JsProxy], None]], JsProxy - ] - | None = ..., + default_converter: ( + Callable[ + [Any, Callable[[Any], JsProxy], Callable[[Any, JsProxy], None]], JsProxy + ] + | None + ) = ..., ) -> JsProxy: ... class Promise(JsProxy): ...