summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Schneeberger <michael.schneeberger@fhnw.ch>2022-08-10 10:08:32 +0200
committerMichael Schneeberger <michael.schneeberger@fhnw.ch>2022-08-10 10:08:32 +0200
commit92b6920fc94b51175fbd3dec60f5b1b3a38d3433 (patch)
treedfe5a608234578c53c25bf24d9b32c977b6a2ba1
parentbug fix: monomial returned by subtract_monomial cannot have negative powers (diff)
downloadpolymatrix-92b6920fc94b51175fbd3dec60f5b1b3a38d3433.tar.gz
polymatrix-92b6920fc94b51175fbd3dec60f5b1b3a38d3433.zip
delegate __repr__ to underlying expression
-rw-r--r--polymatrix/expression/impl/expressionimpl.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/polymatrix/expression/impl/expressionimpl.py b/polymatrix/expression/impl/expressionimpl.py
index ab1da5d..6f140b5 100644
--- a/polymatrix/expression/impl/expressionimpl.py
+++ b/polymatrix/expression/impl/expressionimpl.py
@@ -3,6 +3,9 @@ from polymatrix.expression.expression import Expression
from polymatrix.expression.mixins.expressionbasemixin import ExpressionBaseMixin
-@dataclass_abc.dataclass_abc(frozen=True)
+@dataclass_abc.dataclass_abc(frozen=True, repr=False)
class ExpressionImpl(Expression):
underlying: ExpressionBaseMixin
+
+ def __repr__(self) -> str:
+ return self.underlying.__repr__()