Skip to content

Commit 4bd3616

Browse files
committed
Fix type hint of start_navigation()
1 parent e18dd9b commit 4bd3616

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
@@ -1690,14 +1690,17 @@ def set_localization_waypoint(self, waypoint_id: str) -> typing.Tuple[bool, str]
16901690
resp = self._set_initial_localization_waypoint(waypoint_id)
16911691
return resp[0], resp[1]
16921692
except Exception as e:
1693-
return False, f"Got an error while localizing the robot to the waypoint {waypoint_id}: {e}"
1693+
return (
1694+
False,
1695+
f"Got an error while localizing the robot to the waypoint {waypoint_id}: {e}",
1696+
)
16941697

16951698
def cancel_navigation(self) -> None:
16961699
"""Cancel navigation of a robot from start_navigation()"""
16971700
self._cancel_navigate_to()
16981701

16991702
@try_claim
1700-
def start_navigation(self, target_waypoint_id: str) -> tuple(bool, str, str):
1703+
def start_navigation(self, target_waypoint_id: str) -> typing.Tuple[bool, str, str]:
17011704
"""Navigate a robot to specified waypoint id with GraphNav
17021705
17031706
Args:

0 commit comments

Comments
 (0)