Skip to content

Commit

Permalink
Fixes mypy errors with explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
NewtonCrosby committed Dec 11, 2023
1 parent ee157a1 commit 2d59765
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands2/swervecontrollercommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ def __init__(
else:
self._desiredRotation = self._trajectory.states()[-1].pose.rotation
self.addRequirements(
requirements,
# Ignoring type due to mypy stating the addRequirements was expecting a Subsystem but got an iterable of a subsystem.
# The iterable of the subsystem was to be able to force optional kwargs for the users when overloading the constructor.
requirements, # type: ignore
)
self._timer = Timer()

Expand Down

0 comments on commit 2d59765

Please sign in to comment.