From ec8a0a0cf961e0770417bd093f97d3638e0991cb Mon Sep 17 00:00:00 2001 From: NewtonCrosby Date: Thu, 7 Dec 2023 13:22:38 -0500 Subject: [PATCH] Fixed typing in assignment for Mypy failures. --- commands2/ramsetecommand.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands2/ramsetecommand.py b/commands2/ramsetecommand.py index b6a79b8a..be9c839c 100644 --- a/commands2/ramsetecommand.py +++ b/commands2/ramsetecommand.py @@ -100,10 +100,10 @@ def __init__( Feedforward - {feedforward}, LeftController - {leftController}, RightController - {rightController}, WheelSpeeds - {wheelSpeeds} " ) - self.leftController: PIDController = leftController - self.rightController: PIDController = rightController - self.wheelspeeds: Callable[[], DifferentialDriveWheelSpeeds] = wheelSpeeds - self.feedforward: SimpleMotorFeedforwardMeters = feedforward + self.leftController = leftController + self.rightController = rightController + self.wheelspeeds = wheelSpeeds + self.feedforward = feedforward self.usePID = True self._prevSpeeds = DifferentialDriveWheelSpeeds() self._prevTime = -1.0