diff options
author | Michael Schneeberger <michael.schneeberger@fhnw.ch> | 2022-08-09 10:25:46 +0200 |
---|---|---|
committer | Michael Schneeberger <michael.schneeberger@fhnw.ch> | 2022-08-09 10:25:46 +0200 |
commit | 9fcb9212f2de5bb7bf5f368140be97d22fcde1bc (patch) | |
tree | d28a8315fbe30fb2e5cb1a07645a939cc7953c61 | |
parent | ignore constant monomials in (diff) | |
download | polymatrix-9fcb9212f2de5bb7bf5f368140be97d22fcde1bc.tar.gz polymatrix-9fcb9212f2de5bb7bf5f368140be97d22fcde1bc.zip |
customize repr of parameters
Diffstat (limited to '')
-rw-r--r-- | polymatrix/expression/impl/parametrizeexprimpl.py | 5 |
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)})' |