Skip to content

Commit 616e134

Browse files
committed
Fix type annotation for body_yaw parameter in Backend.set_target
Allow body_yaw parameter to accept None type to match FullBodyTarget model and resolve mypy type checking error in move.py:238.
1 parent 1eb4e46 commit 616e134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reachy_mini/daemon/backend/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def set_target(
290290
head: Annotated[NDArray[np.float64], (4, 4)] | None = None, # 4x4 pose matrix
291291
antennas: Annotated[NDArray[np.float64], (2,)]
292292
| None = None, # [right_angle, left_angle] (in rads)
293-
body_yaw: float = 0.0, # Body yaw angle in radians
293+
body_yaw: float | None = 0.0, # Body yaw angle in radians
294294
) -> None:
295295
"""Set the target head pose and/or antenna positions and/or body_yaw."""
296296
if head is not None:

0 commit comments

Comments
 (0)