From 90ed3b3f3295ebb93f1c2cbeec929c77a1a22cc5 Mon Sep 17 00:00:00 2001 From: Yuzhe Qin Date: Tue, 17 Sep 2024 14:25:06 +0800 Subject: [PATCH] [fix] fix type annotation issue --- dex_retargeting/seq_retarget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dex_retargeting/seq_retarget.py b/dex_retargeting/seq_retarget.py index cbc947d..8949561 100644 --- a/dex_retargeting/seq_retarget.py +++ b/dex_retargeting/seq_retarget.py @@ -129,7 +129,7 @@ def set_qpos(self, robot_qpos: np.ndarray): target_qpos = robot_qpos[self.optimizer.idx_pin2target] self.last_qpos = target_qpos - def get_qpos(self, fixed_qpos: np.ndarray | None = None): + def get_qpos(self, fixed_qpos: Optional[np.ndarray] = None): robot_qpos = np.zeros(self.optimizer.robot.dof) robot_qpos[self.optimizer.idx_pin2target] = self.last_qpos if fixed_qpos is not None: