diff --git a/alfort/app.py b/alfort/app.py index 07d0bac..0e05683 100644 --- a/alfort/app.py +++ b/alfort/app.py @@ -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, diff --git a/alfort/vdom.py b/alfort/vdom.py index 8c12b87..a2bda52 100644 --- a/alfort/vdom.py +++ b/alfort/vdom.py @@ -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) @@ -44,8 +43,7 @@ class Element(Generic[T]): @dataclass(slots=True, frozen=True) -class VDomElement(Element["VDom"]): - ... +class VDomElement(Element["VDom"]): ... VDom = VDomElement | str