From f975c60c937bc04c48e36532c14a6df89b9c5365 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 5 May 2024 11:29:49 +0200 Subject: Add __str__ to FromSympyExpr --- polymatrix/expression/impl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymatrix/expression/impl.py b/polymatrix/expression/impl.py index 91bab0c..03b4c2c 100644 --- a/polymatrix/expression/impl.py +++ b/polymatrix/expression/impl.py @@ -174,6 +174,9 @@ class FromNumpyExprImpl(FromNumpyExprMixin): class FromSympyExprImpl(FromSympyExprMixin): data: sympy.Expr | sympy.Matrix | tuple[tuple[sympy.Expr]] + def __str__(self): + return f"FromSympy({self.data})" + @dataclassabc.dataclassabc(frozen=True) class FromSymmetricMatrixExprImpl(FromSymmetricMatrixExprMixin): -- cgit v1.2.1