From 9fcb9212f2de5bb7bf5f368140be97d22fcde1bc Mon Sep 17 00:00:00 2001 From: Michael Schneeberger Date: Tue, 9 Aug 2022 10:25:46 +0200 Subject: customize repr of parameters --- polymatrix/expression/impl/parametrizeexprimpl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)})' -- cgit v1.2.1