summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Schneeberger <michael.schneeberger@fhnw.ch>2022-08-09 10:25:46 +0200
committerMichael Schneeberger <michael.schneeberger@fhnw.ch>2022-08-09 10:25:46 +0200
commit9fcb9212f2de5bb7bf5f368140be97d22fcde1bc (patch)
treed28a8315fbe30fb2e5cb1a07645a939cc7953c61
parentignore constant monomials in (diff)
downloadpolymatrix-9fcb9212f2de5bb7bf5f368140be97d22fcde1bc.tar.gz
polymatrix-9fcb9212f2de5bb7bf5f368140be97d22fcde1bc.zip
customize repr of parameters
Diffstat (limited to '')
-rw-r--r--polymatrix/expression/impl/parametrizeexprimpl.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/polymatrix/expression/impl/parametrizeexprimpl.py b/polymatrix/expression/impl/parametrizeexprimpl.py
index a1fca6e..3accf0c 100644
--- a/polymatrix/expression/impl/parametrizeexprimpl.py
+++ b/polymatrix/expression/impl/parametrizeexprimpl.py
@@ -3,7 +3,10 @@ from polymatrix.expression.parametrizeexpr import ParametrizeExpr
from polymatrix.expression.mixins.expressionbasemixin import ExpressionBaseMixin
-@dataclass_abc.dataclass_abc(frozen=True, eq=False)
+@dataclass_abc.dataclass_abc(frozen=True, eq=False, repr=False)
class ParametrizeExprImpl(ParametrizeExpr):
underlying: ExpressionBaseMixin
name: str
+
+ def __repr__(self) -> str:
+ return f'{self.__class__.__name__}(name={repr(self.name)})'