(self, real, rank)
| 10 | |
| 11 | class Dual: |
| 12 | def __init__(self, real, rank): |
| 13 | self.real = real |
| 14 | if isinstance(rank, int): |
| 15 | self.duals = [1] * rank |
| 16 | else: |
| 17 | self.duals = rank |
| 18 | |
| 19 | def __repr__(self): |
| 20 | s = "+".join(f"{dual}E{n}" for n, dual in enumerate(self.duals, 1)) |
nothing calls this directly
no outgoing calls
no test coverage detected