From 02e6c5b25fff0e0af3193277231ff02ba53b9dc9 Mon Sep 17 00:00:00 2001 From: taolin Date: Wed, 1 Mar 2023 15:40:48 +0800 Subject: [PATCH] chore: rm todo as it's a bug on mypy [#2] --- qlinks/lattice/component.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qlinks/lattice/component.py b/qlinks/lattice/component.py index f90644e..db9181f 100644 --- a/qlinks/lattice/component.py +++ b/qlinks/lattice/component.py @@ -63,8 +63,7 @@ def __mul__(self, scalar: Real) -> UnitVector: return UnitVector(self.pos_x * scalar, self.pos_y * scalar) def __rmul__(self, scalar: Real) -> UnitVector: # type: ignore[misc] - # TODO: somehow mypy complains this, dunno why - # >>> component.py:58: error: Forward operator "__mul__" is not callable [misc] + # mypy >>> component.py:65: error: Forward operator "__mul__" is not callable [misc] return UnitVector(scalar * self.pos_x, scalar * self.pos_y) def __imul__(self, scalar: Real) -> UnitVector: