import typing import dataclass_abc from polymatrix.polymatrix import PolyMatrix @dataclass_abc.dataclass_abc(frozen=True, eq=False) class PolyMatrixImpl(PolyMatrix): name: str degrees: list[int] subs: dict[int, dict[tuple[int, int], float]] re_index: typing.Callable[[int, int, int, tuple[int, ...]], tuple[int, int, int, tuple[int, ...], float]] is_constant: bool shape: tuple[int, int] is_negated: bool