diff options
author | Nao Pross <np@0hm.ch> | 2024-05-12 17:06:10 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-05-12 17:06:10 +0200 |
commit | feeb6a59177a9672eed6ed500de8c2d7341e7ac0 (patch) | |
tree | 9f3c0d29fdff6e7d97fec4e427474b9611c542cd | |
parent | Mark functions as deprecated (diff) | |
download | polymatrix-feeb6a59177a9672eed6ed500de8c2d7341e7ac0.tar.gz polymatrix-feeb6a59177a9672eed6ed500de8c2d7341e7ac0.zip |
Forgot to make StateMonad a frozen dataclass
in commit 75e0780acdd537e43e1ec8c7228e68ead13515cf
-rw-r--r-- | polymatrix/statemonad.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polymatrix/statemonad.py b/polymatrix/statemonad.py index dc680de..bfd63de 100644 --- a/polymatrix/statemonad.py +++ b/polymatrix/statemonad.py @@ -17,7 +17,7 @@ U = TypeVar("U") V = TypeVar("V") -@dataclass +@dataclass(frozen=True) class StateMonad(Generic[State, U]): apply_func: Callable[[State], tuple[State, U]] |