Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 1, 2024
1 parent d7c5934 commit 1d1c6c0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
9 changes: 3 additions & 6 deletions alfort_dom/dom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 2 additions & 4 deletions docs/examples/todomvc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ class UpdateEntry:


@dataclass(frozen=True)
class Add:
...
class Add: ...


@dataclass(frozen=True)
Expand All @@ -106,8 +105,7 @@ class Delete:


@dataclass(frozen=True)
class DeleteComplete:
...
class DeleteComplete: ...


@dataclass(frozen=True)
Expand Down
26 changes: 17 additions & 9 deletions stubs/pyodide/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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): ...
Expand Down

0 comments on commit 1d1c6c0

Please sign in to comment.