summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-09 12:44:56 +0200
committerNao Pross <np@0hm.ch>2024-05-09 12:44:56 +0200
commit04831f58cc6ea465810fc25aa57ce687269f3ca7 (patch)
treeaed49961520b87e4b5b1f6e2bd10dd88d11c5923
parentImprove implementation of DegreeExprMixin (diff)
downloadpolymatrix-04831f58cc6ea465810fc25aa57ce687269f3ca7.tar.gz
polymatrix-04831f58cc6ea465810fc25aa57ce687269f3ca7.zip
Fix bug in __str__ of StateMonad
-rw-r--r--polymatrix/statemonad/impl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/polymatrix/statemonad/impl.py b/polymatrix/statemonad/impl.py
index 1b78daa..817ce47 100644
--- a/polymatrix/statemonad/impl.py
+++ b/polymatrix/statemonad/impl.py
@@ -11,7 +11,7 @@ class StateMonadImpl(StateMonad):
def __str__(self):
if not self.arguments:
- return super().__str__(self)
+ return f"{str(self.apply_func.__name__)}(...)"
args = str(self.arguments)
if isinstance(self.arguments, Iterable):