From b3e7cb1a62f09e475b35a67d9bac5d13ff22e965 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 3 May 2024 11:34:32 +0200 Subject: Remove __hash__ dunder hack, the user has to manually unwrap --- polymatrix/expression/expression.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymatrix/expression/expression.py b/polymatrix/expression/expression.py index a7e2025..edb0830 100644 --- a/polymatrix/expression/expression.py +++ b/polymatrix/expression/expression.py @@ -526,9 +526,9 @@ class VariableExpression(Expression, Variable): Expression that is a polynomial variable, i.e. an expression that cannot be reduced further. """ - - def __hash__(self): - return self.underlying.__hash__() + @property + def var(self): + return self.underlying @override @property -- cgit v1.2.1