summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-12 17:06:10 +0200
committerNao Pross <np@0hm.ch>2024-05-12 17:06:10 +0200
commitfeeb6a59177a9672eed6ed500de8c2d7341e7ac0 (patch)
tree9f3c0d29fdff6e7d97fec4e427474b9611c542cd
parentMark functions as deprecated (diff)
downloadpolymatrix-feeb6a59177a9672eed6ed500de8c2d7341e7ac0.tar.gz
polymatrix-feeb6a59177a9672eed6ed500de8c2d7341e7ac0.zip
Forgot to make StateMonad a frozen dataclass
in commit 75e0780acdd537e43e1ec8c7228e68ead13515cf
Diffstat (limited to '')
-rw-r--r--polymatrix/statemonad.py2
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]]