From 6adedbb1496690edadac02abfe33a4da6b1257ef Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 24 May 2024 18:49:22 +0200 Subject: Make Expression.shape a property --- polymatrix/expression/expression.py | 1 + 1 file changed, 1 insertion(+) diff --git a/polymatrix/expression/expression.py b/polymatrix/expression/expression.py index 195a256..d697aed 100644 --- a/polymatrix/expression/expression.py +++ b/polymatrix/expression/expression.py @@ -359,6 +359,7 @@ class Expression(ExpressionBaseMixin, ABC): ), ) + @property def shape(self) -> Expression: return self.copy(underlying=polymatrix.expression.init.init_shape_expr(self.underlying)) -- cgit v1.2.1