Skip to content

Commit fae31b5

Browse files
committed
Fix type hint of start_navigation()
1 parent e722513 commit fae31b5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

spot_wrapper/wrapper.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,14 +1724,17 @@ def set_localization_waypoint(self, waypoint_id: str) -> typing.Tuple[bool, str]
17241724
resp = self._set_initial_localization_waypoint(waypoint_id)
17251725
return resp[0], resp[1]
17261726
except Exception as e:
1727-
return False, f"Got an error while localizing the robot to the waypoint {waypoint_id}: {e}"
1727+
return (
1728+
False,
1729+
f"Got an error while localizing the robot to the waypoint {waypoint_id}: {e}",
1730+
)
17281731

17291732
def cancel_navigation(self) -> None:
17301733
"""Cancel navigation of a robot from start_navigation()"""
17311734
self._cancel_navigate_to()
17321735

17331736
@try_claim
1734-
def start_navigation(self, target_waypoint_id: str) -> tuple(bool, str, str):
1737+
def start_navigation(self, target_waypoint_id: str) -> typing.Tuple[bool, str, str]:
17351738
"""Navigate a robot to specified waypoint id with GraphNav
17361739
17371740
Args:

0 commit comments

Comments
 (0)