Skip to content

Commit fd84e8d

Browse files
author
NewtonCrosby
committed
Fixes mypy errors
1 parent 295f012 commit fd84e8d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

commands2/trapezoidprofilesubsystem.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,11 @@ def setGoal(self, goal: Union[TrapezoidProfile.State, float]):
5959
can either be a `TrapezoidProfile.State` or `float`. If float is provided,
6060
the assumed velocity for the goal will be 0.
6161
"""
62-
newGoal = goal
6362
# If we got a float, instantiate the state
6463
if isinstance(goal, float):
65-
newGoal = TrapezoidProfile.State(goal, 0)
64+
goal = TrapezoidProfile.State(goal, 0)
6665

67-
self.__setGoal(newGoal)
66+
self.__setGoal(goal)
6867

6968
def enable(self):
7069
"""Enable the TrapezoidProfileSubsystem's output."""

0 commit comments

Comments
 (0)