From 8b5407fa0ae8f82c8c06918528f0afe605d5f1d6 Mon Sep 17 00:00:00 2001 From: Felix Kloss Date: Thu, 21 Sep 2023 13:08:30 +0200 Subject: [PATCH] fix mypy issue --- robot_fingers/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robot_fingers/utils.py b/robot_fingers/utils.py index 60efe8a..8ace44d 100644 --- a/robot_fingers/utils.py +++ b/robot_fingers/utils.py @@ -1,5 +1,6 @@ """Utility classes/functions for the robot_fingers package.""" import time +import typing as t import numpy as np import numpy.typing as npt @@ -36,7 +37,7 @@ def update(self) -> None: def min_jerk_trajectory( start_position: npt.ArrayLike, end_position: npt.ArrayLike, num_steps: int -) -> npt.NDArray: +) -> t.Iterator[npt.NDArray]: """Generator for computing minimum jerk trajectories. Example: