From 7f2a45d7f3191716f43eddc80ec6d77151745cfc Mon Sep 17 00:00:00 2001 From: Masahiro Wada Date: Sun, 24 Apr 2022 11:55:14 +0000 Subject: [PATCH] feat: Remove type boundary of state --- alfort/app.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/alfort/app.py b/alfort/app.py index 6044a27..a96f68d 100644 --- a/alfort/app.py +++ b/alfort/app.py @@ -1,18 +1,7 @@ from abc import abstractmethod from dataclasses import dataclass, replace from itertools import zip_longest -from typing import ( - Any, - Callable, - Generic, - List, - Mapping, - Optional, - Tuple, - TypeAlias, - TypeVar, - Union, -) +from typing import Callable, Generic, List, Optional, Tuple, TypeAlias, TypeVar, Union from alfort.vdom import ( Element, @@ -29,7 +18,7 @@ T = TypeVar("T") N = TypeVar("N", bound=Node) -S = TypeVar("S", bound=Mapping[str, Any]) +S = TypeVar("S") M = TypeVar("M") Dispatch: TypeAlias = Callable[[M], None]