Skip to content

Commit 5c2fa70

Browse files
authored
Fix the type annotation in pub.py. (#814)
In particular, Python 3.11 on RHEL-9 doesn't seem to like the pipe syntax for an optional argument. But we have the Optional marking available from typing, so switch to that instead. Signed-off-by: Chris Lalancette <[email protected]>
1 parent 57c11d3 commit 5c2fa70

File tree

1 file changed

+1
-1
lines changed
  • ros2topic/ros2topic/verb

1 file changed

+1
-1
lines changed

ros2topic/ros2topic/verb/pub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def publisher(
140140
print_nth: int,
141141
times: int,
142142
wait_matching_subscriptions: int,
143-
max_wait_time: float | None,
143+
max_wait_time: Optional[float],
144144
qos_profile: QoSProfile,
145145
keep_alive: float,
146146
) -> Optional[str]:

0 commit comments

Comments
 (0)