Skip to content

Commit

Permalink
chore: rm todo as it's a bug on mypy [#2]
Browse files Browse the repository at this point in the history
  • Loading branch information
tanlin2013 committed Mar 1, 2023
1 parent 5b3de0f commit 02e6c5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qlinks/lattice/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 02e6c5b

Please sign in to comment.