blob: 4278a6849f6e714253f735b5bec3668fc70c23a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import dataclass_abc
from polymatrix.expression.parametrizeexpr import ParametrizeExpr
from polymatrix.expression.mixins.expressionbasemixin import ExpressionBaseMixin
# @dataclass_abc.dataclass_abc(frozen=True, eq=False, repr=False)
@dataclass_abc.dataclass_abc(frozen=True, repr=False)
class ParametrizeExprImpl(ParametrizeExpr):
underlying: ExpressionBaseMixin
name: str
def __repr__(self) -> str:
return f'{self.__class__.__name__}(name={repr(self.name)})'
# def __eq__(self, other: object) -> bool:
# return self.name == other.name
# def __hash__(self) -> bool:
# return hash(self.name)
|