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 3bdc5a2 commit 70e909b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions alfort/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,10 @@ def __init__(
@abstractmethod
def create_element(
self, tag: str, props: Props, children: list[N], dispatch: Dispatch[M]
) -> N:
...
) -> N: ...

@abstractmethod
def create_text(self, text: str, dispatch: Dispatch[M]) -> N:
...
def create_text(self, text: str, dispatch: Dispatch[M]) -> N: ...

def _patch_children(
self,
Expand Down
6 changes: 2 additions & 4 deletions alfort/vdom.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ class PatchText:


class Node(Protocol):
def apply(self, patch: Patch) -> None:
...
def apply(self, patch: Patch) -> None: ...


@dataclass(slots=True, frozen=True)
Expand All @@ -44,8 +43,7 @@ class Element(Generic[T]):


@dataclass(slots=True, frozen=True)
class VDomElement(Element["VDom"]):
...
class VDomElement(Element["VDom"]): ...


VDom = VDomElement | str
Expand Down

0 comments on commit 70e909b

Please sign in to comment.