From 92b6920fc94b51175fbd3dec60f5b1b3a38d3433 Mon Sep 17 00:00:00 2001 From: Michael Schneeberger Date: Wed, 10 Aug 2022 10:08:32 +0200 Subject: delegate __repr__ to underlying expression --- polymatrix/expression/impl/expressionimpl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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__() -- cgit v1.2.1