Skip to content

Commit 2d59765

Browse files
author
NewtonCrosby
committed
Fixes mypy errors with explanation
1 parent ee157a1 commit 2d59765

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

commands2/swervecontrollercommand.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ def __init__(
263263
else:
264264
self._desiredRotation = self._trajectory.states()[-1].pose.rotation
265265
self.addRequirements(
266-
requirements,
266+
# Ignoring type due to mypy stating the addRequirements was expecting a Subsystem but got an iterable of a subsystem.
267+
# The iterable of the subsystem was to be able to force optional kwargs for the users when overloading the constructor.
268+
requirements, # type: ignore
267269
)
268270
self._timer = Timer()
269271

0 commit comments

Comments
 (0)