From 58f6f675b48a4e9f57126a92be6acbe1c757fe1d Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 7 Jun 2024 18:14:31 +0200 Subject: Add more __str__ methods to expression mixins --- polymatrix/expression/impl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/polymatrix/expression/impl.py b/polymatrix/expression/impl.py index 81a624e..0a60fb8 100644 --- a/polymatrix/expression/impl.py +++ b/polymatrix/expression/impl.py @@ -490,11 +490,17 @@ class SumExprImpl(SumExprMixin): class SymmetricExprImpl(SymmetricExprMixin): underlying: ExpressionBaseMixin + def __str__(self): + return f"symmetric({self.underlying})" + @dataclassabc.dataclassabc(frozen=True) class ToConstantExprImpl(ToConstantExprMixin): underlying: ExpressionBaseMixin + def __str__(self): + return f"ToCostant({self.underlying})" + @dataclassabc.dataclassabc(frozen=True) class ToSortedVariablesImpl(ToSortedVariablesExprMixin): -- cgit v1.2.1